Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.InvertingAmp.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.InvertingAmp,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_InvertingAmp",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.InvertingAmp,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_InvertingAmp",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.001619/0.001619, allocations: 106.6 kB / 17.73 MB, free: 5.348 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.001708/0.001708, allocations: 191 kB / 18.66 MB, free: 4.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.524/1.524, allocations: 205.1 MB / 224.5 MB, free: 12.24 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001368/0.001368, allocations: 52.34 kB / 328 MB, free: 3.789 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1154/0.1167, allocations: 46.61 MB / 374.7 MB, free: 5.066 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.InvertingAmp): time 0.006078/0.1229, allocations: 2.75 MB / 377.4 MB, free: 2.301 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001908/0.1248, allocations: 0.6823 MB / 378.1 MB, free: 1.609 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004325/0.1253, allocations: 7.938 kB / 378.1 MB, free: 1.602 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002933/0.1257, allocations: 43.58 kB / 378.1 MB, free: 1.559 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004561/0.1262, allocations: 87.19 kB / 378.2 MB, free: 1.473 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004377/0.1266, allocations: 91.83 kB / 378.3 MB, free: 1.383 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008069/0.1274, allocations: 382.3 kB / 378.7 MB, free: 1.008 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003711/0.1279, allocations: 130.9 kB / 378.8 MB, free: 0.8789 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003372/0.1282, allocations: 143.5 kB / 379 MB, free: 0.7383 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003517/0.1286, allocations: 167.2 kB / 379.1 MB, free: 0.5742 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001074/0.1287, allocations: 36 kB / 379.2 MB, free: 0.5391 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.228e-05/0.1288, allocations: 32 kB / 379.2 MB, free: 0.5078 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001026/0.1289, allocations: 67.81 kB / 379.3 MB, free: 452 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003322/0.1292, allocations: 163.2 kB / 379.4 MB, free: 288 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2139/0.3432, allocations: 379.8 kB / 379.8 MB, free: 10.06 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.073e-05/0.3432, allocations: 1.219 kB / 379.8 MB, free: 10.06 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.996e-06/0.3432, allocations: 0 / 379.8 MB, free: 10.06 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.834e-05/0.3433, allocations: 0 / 379.8 MB, free: 10.06 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.001785/0.3451, allocations: 0.6488 MB / 380.4 MB, free: 9.605 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.037e-05/0.3451, allocations: 9.625 kB / 380.4 MB, free: 9.605 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000138/0.3453, allocations: 61.11 kB / 380.5 MB, free: 9.566 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001413/0.3454, allocations: 34.44 kB / 380.5 MB, free: 9.551 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004581/0.3459, allocations: 274.2 kB / 380.8 MB, free: 9.324 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.575e-05/0.3459, allocations: 17.31 kB / 380.8 MB, free: 9.324 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.807e-05/0.346, allocations: 24.53 kB / 380.8 MB, free: 9.324 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007446/0.3468, allocations: 304.5 kB / 381.1 MB, free: 9.27 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.465e-05/0.3468, allocations: 1.375 kB / 381.1 MB, free: 9.27 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.053e-05/0.3468, allocations: 11.16 kB / 381.2 MB, free: 9.27 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.556e-05/0.3468, allocations: 5.938 kB / 381.2 MB, free: 9.27 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008297/0.3477, allocations: 254.7 kB / 381.4 MB, free: 9.27 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001894/0.3496, allocations: 1.082 MB / 382.5 MB, free: 8.676 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008109/0.3504, allocations: 212.5 kB / 382.7 MB, free: 8.652 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003102/0.3507, allocations: 91.45 kB / 382.8 MB, free: 8.645 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.331e-05/0.3508, allocations: 1.125 kB / 382.8 MB, free: 8.645 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005329/0.3513, allocations: 177.6 kB / 383 MB, free: 8.566 MB / 318.1 MB Notification: Performance of pre-optimization done (n=12): time 2.755e-06/0.3513, allocations: 0 / 383 MB, free: 8.566 MB / 318.1 MB Notification: Performance of matching and sorting (n=12): time 0.002289/0.3536, allocations: 0.5075 MB / 383.5 MB, free: 8.41 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.823e-05/0.3537, allocations: 107.6 kB / 383.6 MB, free: 8.285 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003472/0.354, allocations: 283.9 kB / 383.9 MB, free: 8.176 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.719e-05/0.3541, allocations: 30.27 kB / 383.9 MB, free: 8.145 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001193/0.3542, allocations: 201.7 kB / 384.1 MB, free: 8.008 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.686e-05/0.3543, allocations: 39.58 kB / 384.1 MB, free: 7.984 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.453e-05/0.3544, allocations: 49.83 kB / 384.2 MB, free: 7.969 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.11e-05/0.3544, allocations: 339.3 kB / 384.5 MB, free: 7.652 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003266/0.3548, allocations: 93.59 kB / 384.6 MB, free: 7.652 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003515/0.3551, allocations: 199.6 kB / 384.8 MB, free: 7.523 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006824/0.3558, allocations: 298.4 kB / 385.1 MB, free: 7.375 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.21e-06/0.3558, allocations: 8.812 kB / 385.1 MB, free: 7.371 MB / 318.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001208/0.3571, allocations: 429.3 kB / 385.5 MB, free: 7.277 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.113e-05/0.3571, allocations: 34.84 kB / 385.5 MB, free: 7.246 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.04e-05/0.3571, allocations: 1.969 kB / 385.5 MB, free: 7.246 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003596/0.3575, allocations: 80.19 kB / 385.6 MB, free: 7.23 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002343/0.3577, allocations: 43.86 kB / 385.7 MB, free: 7.23 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002172/0.3599, allocations: 1.719 MB / 387.4 MB, free: 5.859 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005039/0.3605, allocations: 52.98 kB / 387.4 MB, free: 5.844 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.097e-05/0.3605, allocations: 13.59 kB / 387.4 MB, free: 5.844 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 5 (vIn.signalSource.count,$PRE.vIn.signalSource.count,vIn.signalSource.T_start,$PRE.vIn.signalSource.T_start,$whenCondition1) * 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: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0001683/0.3607, allocations: 151 kB / 387.6 MB, free: 5.719 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.652e-05/0.3608, allocations: 34.45 kB / 387.6 MB, free: 5.703 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.905e-05/0.3609, allocations: 28.45 kB / 387.7 MB, free: 5.691 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.146e-06/0.3609, allocations: 1.094 kB / 387.7 MB, free: 5.691 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.691e-06/0.3609, allocations: 1.312 kB / 387.7 MB, free: 5.691 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.841e-06/0.3609, allocations: 0.5156 kB / 387.7 MB, free: 5.691 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003846/0.3613, allocations: 302.3 kB / 388 MB, free: 5.457 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.988e-06/0.3613, allocations: 1.062 kB / 388 MB, free: 5.457 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001251/0.3614, allocations: 17.69 kB / 388 MB, free: 5.457 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002719/0.3617, allocations: 72.31 kB / 388 MB, free: 5.43 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.06e-05/0.3617, allocations: 5.109 kB / 388 MB, free: 5.426 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001974/0.3637, allocations: 1.703 MB / 389.7 MB, free: 3.918 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.176e-06/0.3637, allocations: 5.156 kB / 389.8 MB, free: 3.914 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009448/0.3647, allocations: 315.5 kB / 390.1 MB, free: 3.773 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000117/0.3648, allocations: 115.6 kB / 390.2 MB, free: 3.656 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.011e-05/0.3649, allocations: 2.656 kB / 390.2 MB, free: 3.656 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002677/0.3651, allocations: 32.33 kB / 390.2 MB, free: 3.652 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000102/0.3653, allocations: 25.55 kB / 390.2 MB, free: 3.645 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.307e-05/0.3653, allocations: 6.375 kB / 390.2 MB, free: 3.641 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002104/0.3655, allocations: 204.7 kB / 390.4 MB, free: 3.523 MB / 318.1 MB Notification: Performance of sort global known variables: time 6.01e-07/0.3655, allocations: 0 / 390.4 MB, free: 3.523 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0005364/0.366, allocations: 76.44 kB / 390.5 MB, free: 3.512 MB / 318.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: 3 ($whenCondition1,vIn.signalSource.T_start,vIn.signalSource.count) * Number of discrete states: 1 (vIn.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001436/0.3675, allocations: 0.8467 MB / 391.4 MB, free: 2.844 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.00125/0.3688, allocations: 413.8 kB / 391.8 MB, free: 2.609 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.286e-06/0.3688, allocations: 0 / 391.8 MB, free: 2.609 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004697/0.3692, allocations: 224 kB / 392 MB, free: 2.465 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003676/0.3696, allocations: 43.47 kB / 392 MB, free: 2.449 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005789/0.3754, allocations: 3.003 MB / 395 MB, free: 500 kB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000477/0.3759, allocations: 0.7477 MB / 395.8 MB, free: 15.79 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001549/0.3761, allocations: 30 kB / 395.8 MB, free: 15.79 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001517/0.3763, allocations: 82.66 kB / 395.9 MB, free: 15.72 MB / 334.1 MB Notification: Performance of SimCode: time 1.312e-06/0.3763, allocations: 0 / 395.9 MB, free: 15.72 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03639/0.4127, allocations: 6.954 MB / 402.8 MB, free: 13.51 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.62/12.03, allocations: 13.39 kB / 402.9 MB, free: 13.5 MB / 334.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.InvertingAmp.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.InvertingAmp_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_InvertingAmp_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_InvertingAmp.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.InvertingAmp_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/InvertingAmp/InvertingAmp.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.InvertingAmp.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,vIn.signalSource.y Variables in the result:R1,R2,Vin,Vns,Vps,f,ground.p.i,ground.p.v,ground1.p.i,ground1.p.v,k,opAmp.VMax.i,opAmp.VMax.v,opAmp.VMin.i,opAmp.VMin.v,opAmp.in_n.i,opAmp.in_n.v,opAmp.in_p.i,opAmp.in_p.v,opAmp.out.i,opAmp.out.v,opAmp.vin,r1.LossPower,r1.R,r1.R_actual,r1.T,r1.T_heatPort,r1.T_ref,r1.alpha,r1.i,r1.n.i,r1.n.v,r1.p.i,r1.p.v,r1.useHeatPort,r1.v,r2.LossPower,r2.R,r2.R_actual,r2.T,r2.T_heatPort,r2.T_ref,r2.alpha,r2.i,r2.n.i,r2.n.v,r2.p.i,r2.p.v,r2.useHeatPort,r2.v,time,vIn.V,vIn.falling,vIn.i,vIn.n.i,vIn.n.v,vIn.nperiod,vIn.offset,vIn.p.i,vIn.p.v,vIn.period,vIn.rising,vIn.signalSource.amplitude,vIn.signalSource.falling,vIn.signalSource.nperiod,vIn.signalSource.offset,vIn.signalSource.period,vIn.signalSource.rising,vIn.signalSource.startTime,vIn.signalSource.width,vIn.signalSource.y,vIn.startTime,vIn.v,vIn.width,vOut.n.i,vOut.n.v,vOut.p.i,vOut.p.v,vOut.v,vSourceNeg.V,vSourceNeg.i,vSourceNeg.n.i,vSourceNeg.n.v,vSourceNeg.p.i,vSourceNeg.p.v,vSourceNeg.v,vSourcePos.V,vSourcePos.i,vSourcePos.n.i,vSourcePos.n.v,vSourcePos.p.i,vSourcePos.p.v,vSourcePos.v