Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Subtracter,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_Subtracter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Subtracter,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001149/0.001149, allocations: 94.52 kB / 16.65 MB, free: 6.535 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001454/0.001454, allocations: 173.2 kB / 17.56 MB, free: 6.184 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.54/1.54, allocations: 223.3 MB / 241.6 MB, free: 200 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003363/0.0003364, allocations: 8 kB / 301.5 MB, free: 6.031 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1257/0.1261, allocations: 50.42 MB / 352 MB, free: 3.602 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Subtracter): time 0.004191/0.1303, allocations: 3.012 MB / 355 MB, free: 0.5664 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001849/0.1322, allocations: 0.791 MB / 355.8 MB, free: 15.77 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004508/0.1326, allocations: 7.938 kB / 355.8 MB, free: 15.77 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000267/0.1329, allocations: 47.67 kB / 355.8 MB, free: 15.72 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004947/0.1334, allocations: 107.2 kB / 355.9 MB, free: 15.61 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004556/0.1339, allocations: 115.8 kB / 356 MB, free: 15.5 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008719/0.1348, allocations: 470 kB / 356.5 MB, free: 15.04 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004167/0.1352, allocations: 153.4 kB / 356.6 MB, free: 14.88 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004392/0.1357, allocations: 151.3 kB / 356.8 MB, free: 14.73 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004297/0.1361, allocations: 171.1 kB / 357 MB, free: 14.57 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000102/0.1362, allocations: 24 kB / 357 MB, free: 14.54 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001151/0.1364, allocations: 24 kB / 357 MB, free: 14.52 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.296e-05/0.1365, allocations: 59.7 kB / 357.1 MB, free: 14.46 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003274/0.1368, allocations: 224.6 kB / 357.3 MB, free: 14.23 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006378/0.1374, allocations: 0.5256 MB / 357.8 MB, free: 13.71 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.13e-06/0.1375, allocations: 0 / 357.8 MB, free: 13.71 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.446e-06/0.1375, allocations: 0 / 357.8 MB, free: 13.71 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.181e-05/0.1375, allocations: 0 / 357.8 MB, free: 13.71 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.001491/0.139, allocations: 0.6396 MB / 358.4 MB, free: 13.02 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.811e-05/0.1391, allocations: 12.03 kB / 358.5 MB, free: 13.01 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002134/0.1393, allocations: 70.72 kB / 358.5 MB, free: 12.93 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001429/0.1394, allocations: 48.38 kB / 358.6 MB, free: 12.88 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004895/0.1399, allocations: 304.8 kB / 358.9 MB, free: 12.54 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.852e-05/0.14, allocations: 29.38 kB / 358.9 MB, free: 12.52 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.289e-05/0.14, allocations: 31.94 kB / 358.9 MB, free: 12.48 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008736/0.1409, allocations: 402.1 kB / 359.3 MB, free: 12.08 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.804e-05/0.141, allocations: 3.984 kB / 359.3 MB, free: 12.08 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.117e-05/0.141, allocations: 16 kB / 359.3 MB, free: 12.06 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.268e-05/0.141, allocations: 11.94 kB / 359.4 MB, free: 12.05 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008285/0.1419, allocations: 307.9 kB / 359.7 MB, free: 11.75 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002871/0.1447, allocations: 1.467 MB / 361.1 MB, free: 10.19 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006724/0.1454, allocations: 242.8 kB / 361.4 MB, free: 9.941 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002252/0.1457, allocations: 100.8 kB / 361.5 MB, free: 9.84 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.691e-05/0.1457, allocations: 8 kB / 361.5 MB, free: 9.832 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.131e-05/0.1457, allocations: 38.55 kB / 361.5 MB, free: 9.785 MB / 302.1 MB Notification: Performance of pre-optimization done (n=16): time 1.673e-06/0.1457, allocations: 3.938 kB / 361.5 MB, free: 9.781 MB / 302.1 MB Notification: Performance of matching and sorting (n=16): time 0.002398/0.1481, allocations: 0.8017 MB / 362.3 MB, free: 8.93 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.626e-05/0.1482, allocations: 63.34 kB / 362.4 MB, free: 8.855 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004043/0.1486, allocations: 307.3 kB / 362.7 MB, free: 8.547 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.801e-05/0.1487, allocations: 29.7 kB / 362.7 MB, free: 8.512 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000175/0.1488, allocations: 231.7 kB / 362.9 MB, free: 8.277 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.759e-05/0.1489, allocations: 51.2 kB / 363 MB, free: 8.227 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.635e-05/0.149, allocations: 29.7 kB / 363 MB, free: 8.191 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001567/0.1491, allocations: 338.8 kB / 363.3 MB, free: 7.852 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002274/0.1494, allocations: 87.95 kB / 363.4 MB, free: 7.766 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002864/0.1497, allocations: 165.3 kB / 363.6 MB, free: 7.57 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004979/0.1502, allocations: 264 kB / 363.8 MB, free: 7.281 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.596e-06/0.1502, allocations: 0 / 363.8 MB, free: 7.281 MB / 302.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001106/0.1513, allocations: 446.7 kB / 364.3 MB, free: 6.832 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.658e-05/0.1513, allocations: 8 kB / 364.3 MB, free: 6.824 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.558e-06/0.1513, allocations: 0 / 364.3 MB, free: 6.824 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005146/0.1519, allocations: 121.7 kB / 364.4 MB, free: 6.699 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001605/0.152, allocations: 43.91 kB / 364.4 MB, free: 6.656 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004222/0.1563, allocations: 3.314 MB / 367.8 MB, free: 3.078 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002679/0.1566, allocations: 39.75 kB / 367.8 MB, free: 3.039 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.566e-05/0.1566, allocations: 11.94 kB / 367.8 MB, free: 3.027 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.00031/0.1569, allocations: 165.6 kB / 368 MB, free: 2.855 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.523e-05/0.157, allocations: 23.91 kB / 368 MB, free: 2.832 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.863e-05/0.1571, allocations: 34.28 kB / 368 MB, free: 2.797 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.234e-06/0.1571, allocations: 3.938 kB / 368 MB, free: 2.793 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.063e-06/0.1571, allocations: 8 kB / 368 MB, free: 2.785 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.619e-06/0.1571, allocations: 0 / 368 MB, free: 2.785 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005276/0.1576, allocations: 369.3 kB / 368.4 MB, free: 2.375 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.436e-06/0.1577, allocations: 0 / 368.4 MB, free: 2.375 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.2e-05/0.1578, allocations: 15.98 kB / 368.4 MB, free: 2.359 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004264/0.1582, allocations: 117.6 kB / 368.5 MB, free: 2.238 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.146e-05/0.1582, allocations: 0 / 368.5 MB, free: 2.238 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2264/0.3846, allocations: 3.201 MB / 371.7 MB, free: 23.21 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.018e-06/0.3847, allocations: 5.75 kB / 371.7 MB, free: 23.21 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001143/0.3858, allocations: 457.3 kB / 372.2 MB, free: 23.07 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001104/0.3859, allocations: 110.8 kB / 372.3 MB, free: 22.97 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.969e-05/0.386, allocations: 2.75 kB / 372.3 MB, free: 22.97 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002591/0.3862, allocations: 33.45 kB / 372.3 MB, free: 22.97 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.754e-05/0.3863, allocations: 11.88 kB / 372.3 MB, free: 22.97 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.888e-05/0.3863, allocations: 10.94 kB / 372.4 MB, free: 22.97 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003176/0.3867, allocations: 217.2 kB / 372.6 MB, free: 22.89 MB / 302.1 MB Notification: Performance of sort global known variables: time 2e-07/0.3867, allocations: 1.5 kB / 372.6 MB, free: 22.89 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006176/0.3873, allocations: 103 kB / 372.7 MB, free: 22.89 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.001271/0.3886, allocations: 0.9792 MB / 373.6 MB, free: 22.23 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001203/0.3898, allocations: 0.5362 MB / 374.2 MB, free: 22.01 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/0.3898, allocations: 1.156 kB / 374.2 MB, free: 22.01 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004236/0.3902, allocations: 347.6 kB / 374.5 MB, free: 21.79 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004986/0.3908, allocations: 43.73 kB / 374.6 MB, free: 21.79 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005732/0.3965, allocations: 3.464 MB / 378 MB, free: 20.02 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002935/0.3968, allocations: 0.7777 MB / 378.8 MB, free: 19.31 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001463/0.397, allocations: 26.36 kB / 378.8 MB, free: 19.3 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001404/0.3971, allocations: 98.66 kB / 378.9 MB, free: 19.3 MB / 302.1 MB Notification: Performance of SimCode: time 1.092e-06/0.3971, allocations: 1.375 kB / 378.9 MB, free: 19.3 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02241/0.4195, allocations: 6.514 MB / 385.4 MB, free: 18.08 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001663/0.4197, allocations: 237.1 kB / 385.7 MB, free: 17.83 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.149/2.569, allocations: 0 / 385.7 MB, free: 17.83 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_Subtracter_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_Subtracter.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches