Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Subtracter,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_Subtracter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Subtracter,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_Subtracter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008949/0.0008949, allocations: 95.88 kB / 17.35 MB, free: 6.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001056/0.001056, allocations: 206.5 kB / 18.29 MB, free: 5.492 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.271/1.271, allocations: 227.7 MB / 246.8 MB, free: 11.41 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0001985/0.0001986, allocations: 8 kB / 307.8 MB, free: 0.7188 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08011/0.08032, allocations: 51.53 MB / 359.4 MB, free: 13.18 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Subtracter): time 0.002968/0.08331, allocations: 3.034 MB / 362.4 MB, free: 10.13 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001324/0.08466, allocations: 0.8417 MB / 363.3 MB, free: 9.285 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000215/0.08489, allocations: 8 kB / 363.3 MB, free: 9.277 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001488/0.08505, allocations: 55.59 kB / 363.3 MB, free: 9.223 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002554/0.08532, allocations: 103.2 kB / 363.4 MB, free: 9.121 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002831/0.08561, allocations: 131.9 kB / 363.5 MB, free: 8.992 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004252/0.08604, allocations: 470 kB / 364 MB, free: 8.531 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002257/0.08628, allocations: 157.3 kB / 364.2 MB, free: 8.371 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002413/0.08653, allocations: 159.3 kB / 364.3 MB, free: 8.215 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002114/0.08675, allocations: 167.2 kB / 364.5 MB, free: 8.051 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.925e-05/0.08681, allocations: 24 kB / 364.5 MB, free: 8.027 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.9e-05/0.08689, allocations: 28 kB / 364.5 MB, free: 8 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.493e-05/0.08695, allocations: 71.62 kB / 364.6 MB, free: 7.93 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001602/0.08712, allocations: 208.7 kB / 364.8 MB, free: 7.719 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004576/0.08758, allocations: 0.5334 MB / 365.3 MB, free: 7.184 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.08759, allocations: 0 / 365.3 MB, free: 7.184 MB / 302.1 MB Notification: Performance of FrontEnd: time 9.92e-07/0.0876, allocations: 0 / 365.3 MB, free: 7.184 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.784e-05/0.08763, allocations: 0 / 365.3 MB, free: 7.184 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 87 * Number of variables: 87 Notification: Performance of Generate backend data structure: time 0.0011/0.08873, allocations: 0.6513 MB / 366 MB, free: 6.484 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.65e-05/0.08878, allocations: 8.031 kB / 366 MB, free: 6.477 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001097/0.0889, allocations: 70.72 kB / 366.1 MB, free: 6.398 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002109/0.08912, allocations: 56.38 kB / 366.1 MB, free: 6.344 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003883/0.08952, allocations: 316.6 kB / 366.4 MB, free: 5.992 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.25e-05/0.08955, allocations: 25.38 kB / 366.4 MB, free: 5.969 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.584e-05/0.0896, allocations: 39.94 kB / 366.5 MB, free: 5.93 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006667/0.09027, allocations: 394.1 kB / 366.9 MB, free: 5.535 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.013e-05/0.09029, allocations: 0 / 366.9 MB, free: 5.535 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.192e-05/0.09033, allocations: 16 kB / 366.9 MB, free: 5.52 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.175e-06/0.09034, allocations: 8 kB / 366.9 MB, free: 5.512 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006175/0.09096, allocations: 311.9 kB / 367.2 MB, free: 5.203 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002019/0.09299, allocations: 1.471 MB / 368.7 MB, free: 3.641 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005718/0.09358, allocations: 238.8 kB / 368.9 MB, free: 3.398 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002092/0.09379, allocations: 112.8 kB / 369 MB, free: 3.285 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.638e-05/0.09382, allocations: 3.938 kB / 369 MB, free: 3.281 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.628e-05/0.09385, allocations: 34.56 kB / 369.1 MB, free: 3.238 MB / 302.1 MB Notification: Performance of pre-optimization done (n=16): time 1.212e-06/0.09386, allocations: 0 / 369.1 MB, free: 3.238 MB / 302.1 MB Notification: Performance of matching and sorting (n=16): time 0.00211/0.09597, allocations: 0.8126 MB / 369.9 MB, free: 2.379 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.106e-05/0.09601, allocations: 55.34 kB / 369.9 MB, free: 2.312 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003012/0.09632, allocations: 324.4 kB / 370.2 MB, free: 1.992 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.935e-05/0.09635, allocations: 25.7 kB / 370.3 MB, free: 1.961 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001211/0.09648, allocations: 231.7 kB / 370.5 MB, free: 1.727 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.755e-05/0.09652, allocations: 55.2 kB / 370.5 MB, free: 1.672 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.076e-05/0.09657, allocations: 29.7 kB / 370.6 MB, free: 1.637 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.699e-05/0.09667, allocations: 338.8 kB / 370.9 MB, free: 1.297 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002036/0.09688, allocations: 87.95 kB / 371 MB, free: 1.211 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000233/0.09712, allocations: 165.3 kB / 371.1 MB, free: 1.016 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004237/0.09755, allocations: 255.5 kB / 371.4 MB, free: 0.7344 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.09756, allocations: 3.938 kB / 371.4 MB, free: 0.7305 MB / 302.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0009509/0.09852, allocations: 449.9 kB / 371.8 MB, free: 288 kB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.403e-05/0.09854, allocations: 8 kB / 371.8 MB, free: 280 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.41e-06/0.09856, allocations: 4.062 kB / 371.9 MB, free: 276 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004149/0.09898, allocations: 117.6 kB / 372 MB, free: 152 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001433/0.09913, allocations: 47.91 kB / 372 MB, free: 104 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1395/0.2387, allocations: 3.304 MB / 375.3 MB, free: 16.46 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002887/0.239, allocations: 39.45 kB / 375.4 MB, free: 16.46 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.786e-05/0.239, allocations: 12.38 kB / 375.4 MB, free: 16.46 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0001781/0.2392, allocations: 157.5 kB / 375.5 MB, free: 16.34 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.317e-05/0.2393, allocations: 26.03 kB / 375.5 MB, free: 16.34 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.507e-05/0.2394, allocations: 35.36 kB / 375.6 MB, free: 16.33 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.216e-06/0.2394, allocations: 1.75 kB / 375.6 MB, free: 16.33 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.54e-06/0.2394, allocations: 1.266 kB / 375.6 MB, free: 16.33 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.278e-06/0.2394, allocations: 3.172 kB / 375.6 MB, free: 16.33 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000401/0.2398, allocations: 365.7 kB / 375.9 MB, free: 16.14 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.255e-06/0.2398, allocations: 4.938 kB / 376 MB, free: 16.14 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.992e-05/0.2399, allocations: 16.86 kB / 376 MB, free: 16.14 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003837/0.2403, allocations: 121.4 kB / 376.1 MB, free: 16.13 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.516e-05/0.2403, allocations: 8.703 kB / 376.1 MB, free: 16.12 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002833/0.2432, allocations: 3.204 MB / 379.3 MB, free: 13.54 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.834e-06/0.2432, allocations: 2.312 kB / 379.3 MB, free: 13.54 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009058/0.2441, allocations: 450.3 kB / 379.7 MB, free: 13.36 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.08e-05/0.2442, allocations: 107.7 kB / 379.8 MB, free: 13.25 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.239e-05/0.2442, allocations: 6.094 kB / 379.9 MB, free: 13.25 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002253/0.2445, allocations: 29.92 kB / 379.9 MB, free: 13.25 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.661e-05/0.2445, allocations: 23.03 kB / 379.9 MB, free: 13.24 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.37e-05/0.2445, allocations: 7.781 kB / 379.9 MB, free: 13.24 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002134/0.2448, allocations: 225.8 kB / 380.1 MB, free: 13.16 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.2448, allocations: 0 / 380.1 MB, free: 13.16 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004849/0.2453, allocations: 105.4 kB / 380.2 MB, free: 13.14 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009858/0.2462, allocations: 0.9727 MB / 381.2 MB, free: 12.45 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001046/0.2473, allocations: 0.5283 MB / 381.7 MB, free: 12.17 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.2473, allocations: 1.656 kB / 381.7 MB, free: 12.17 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003677/0.2477, allocations: 350.7 kB / 382.1 MB, free: 11.9 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004079/0.2481, allocations: 51.2 kB / 382.1 MB, free: 11.88 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004388/0.2525, allocations: 3.465 MB / 385.6 MB, free: 9.625 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002022/0.2527, allocations: 0.7789 MB / 386.4 MB, free: 8.926 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001176/0.2529, allocations: 30.38 kB / 386.4 MB, free: 8.914 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001073/0.253, allocations: 101.1 kB / 386.5 MB, free: 8.836 MB / 302.1 MB Notification: Performance of SimCode: time 5.51e-07/0.253, allocations: 0 / 386.5 MB, free: 8.836 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02225/0.2752, allocations: 6.53 MB / 393 MB, free: 7.348 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000154/0.2754, allocations: 240.6 kB / 393.3 MB, free: 7.094 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.72/1.995, allocations: 3.719 kB / 393.3 MB, free: 7.094 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_Subtracter_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_Subtracter.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/Subtracter/Subtracter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches