Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator.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.Differentiator,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_Differentiator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Differentiator,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_Differentiator",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.002149/0.002149, allocations: 112.6 kB / 16.51 MB, free: 6.707 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.002293/0.002293, allocations: 190.5 kB / 17.43 MB, free: 6.066 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.422/1.422, allocations: 222.9 MB / 241.1 MB, free: 13.77 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001236/0.001236, allocations: 46.64 kB / 300.1 MB, free: 5.961 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1513/0.1525, allocations: 49.44 MB / 349.5 MB, free: 4.504 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Differentiator): time 0.006691/0.1593, allocations: 2.889 MB / 352.4 MB, free: 1.594 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002203/0.1616, allocations: 0.7207 MB / 353.1 MB, free: 0.8672 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004772/0.1621, allocations: 4 kB / 353.1 MB, free: 0.8633 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003356/0.1625, allocations: 35.7 kB / 353.2 MB, free: 0.8281 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004781/0.163, allocations: 79.38 kB / 353.3 MB, free: 0.75 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005457/0.1636, allocations: 95.94 kB / 353.3 MB, free: 0.6562 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007342/0.1643, allocations: 370.5 kB / 353.7 MB, free: 300 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004422/0.1648, allocations: 111.8 kB / 353.8 MB, free: 188 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005802/0.1654, allocations: 127.5 kB / 353.9 MB, free: 60 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005115/0.1659, allocations: 159.2 kB / 354.1 MB, free: 15.9 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001137/0.1661, allocations: 20 kB / 354.1 MB, free: 15.88 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001266/0.1662, allocations: 20 kB / 354.1 MB, free: 15.86 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001236/0.1664, allocations: 59.75 kB / 354.2 MB, free: 15.8 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003704/0.1667, allocations: 155.1 kB / 354.3 MB, free: 15.65 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005075/0.1673, allocations: 402.9 kB / 354.7 MB, free: 15.26 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.764e-06/0.1673, allocations: 0 / 354.7 MB, free: 15.26 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.1673, allocations: 0 / 354.7 MB, free: 15.26 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.635e-05/0.1673, allocations: 0 / 354.7 MB, free: 15.26 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: 59 * Number of variables: 59 Notification: Performance of Generate backend data structure: time 0.00177/0.1691, allocations: 0.6575 MB / 355.4 MB, free: 14.54 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.835e-05/0.1692, allocations: 12.03 kB / 355.4 MB, free: 14.53 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.425e-05/0.1693, allocations: 58.72 kB / 355.5 MB, free: 14.46 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001064/0.1694, allocations: 36.56 kB / 355.5 MB, free: 14.43 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005453/0.1699, allocations: 296.5 kB / 355.8 MB, free: 14.1 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.258e-05/0.17, allocations: 16.94 kB / 355.8 MB, free: 14.08 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.015e-05/0.1701, allocations: 24.36 kB / 355.8 MB, free: 14.06 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008327/0.1709, allocations: 319.8 kB / 356.1 MB, free: 13.74 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.293e-05/0.1709, allocations: 0 / 356.1 MB, free: 13.74 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.74e-05/0.171, allocations: 12 kB / 356.2 MB, free: 13.73 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.037e-05/0.171, allocations: 4 kB / 356.2 MB, free: 13.72 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009043/0.1719, allocations: 286 kB / 356.4 MB, free: 13.45 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002248/0.1742, allocations: 1.111 MB / 357.6 MB, free: 12.25 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009607/0.1751, allocations: 246.6 kB / 357.8 MB, free: 12 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000334/0.1755, allocations: 100.8 kB / 357.9 MB, free: 11.9 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.066e-05/0.1755, allocations: 4 kB / 357.9 MB, free: 11.9 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006013/0.1761, allocations: 173.9 kB / 358.1 MB, free: 11.71 MB / 302.1 MB Notification: Performance of pre-optimization done (n=12): time 2.405e-06/0.1762, allocations: 0 / 358.1 MB, free: 11.71 MB / 302.1 MB Notification: Performance of matching and sorting (n=12): time 0.001184/0.1773, allocations: 321.5 kB / 358.4 MB, free: 11.39 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.565e-05/0.1774, allocations: 81.11 kB / 358.5 MB, free: 11.29 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003909/0.1778, allocations: 262.6 kB / 358.7 MB, free: 11.03 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.459e-05/0.1779, allocations: 29.7 kB / 358.7 MB, free: 11 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001855/0.1781, allocations: 203.5 kB / 358.9 MB, free: 10.79 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.883e-05/0.1781, allocations: 31.55 kB / 359 MB, free: 10.76 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001308/0.1783, allocations: 53.55 kB / 359 MB, free: 10.7 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001785/0.1785, allocations: 334.8 kB / 359.4 MB, free: 10.36 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000366/0.1788, allocations: 100.2 kB / 359.4 MB, free: 10.26 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004194/0.1793, allocations: 191.5 kB / 359.6 MB, free: 10.04 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007437/0.18, allocations: 307.7 kB / 359.9 MB, free: 9.691 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.6e-06/0.18, allocations: 4 kB / 359.9 MB, free: 9.688 MB / 302.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0009678/0.181, allocations: 366.3 kB / 360.3 MB, free: 9.32 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.606e-05/0.1811, allocations: 37.7 kB / 360.3 MB, free: 9.277 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.338e-06/0.1811, allocations: 0 / 360.3 MB, free: 9.277 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.478e-05/0.1811, allocations: 4 kB / 360.3 MB, free: 9.273 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003009/0.1814, allocations: 64.02 kB / 360.4 MB, free: 9.211 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.764e-05/0.1815, allocations: 11.98 kB / 360.4 MB, free: 9.199 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003331/0.1818, allocations: 47.75 kB / 360.5 MB, free: 9.152 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.024e-05/0.1819, allocations: 8 kB / 360.5 MB, free: 9.145 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (26): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002032/0.1821, allocations: 153.7 kB / 360.6 MB, free: 8.984 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.787e-05/0.1821, allocations: 23.72 kB / 360.6 MB, free: 8.961 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.81e-05/0.1822, allocations: 25.7 kB / 360.7 MB, free: 8.934 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.742e-06/0.1822, allocations: 4 kB / 360.7 MB, free: 8.93 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.115e-06/0.1822, allocations: 0 / 360.7 MB, free: 8.93 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.994e-06/0.1822, allocations: 3.938 kB / 360.7 MB, free: 8.926 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004025/0.1827, allocations: 313.5 kB / 361 MB, free: 8.57 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.006e-06/0.1827, allocations: 0 / 361 MB, free: 8.57 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002485/0.1829, allocations: 43.95 kB / 361 MB, free: 8.527 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.031e-06/0.1829, allocations: 3.984 kB / 361 MB, free: 8.523 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.987e-05/0.183, allocations: 4 kB / 361 MB, free: 8.52 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.994e-06/0.183, allocations: 4 kB / 361 MB, free: 8.516 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.509e-06/0.183, allocations: 3.938 kB / 361 MB, free: 8.512 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001089/0.1841, allocations: 376.5 kB / 361.4 MB, free: 8.125 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.424e-05/0.1842, allocations: 100.8 kB / 361.5 MB, free: 8.008 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.766e-05/0.1842, allocations: 7.984 kB / 361.5 MB, free: 8 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002327/0.1845, allocations: 27.97 kB / 361.5 MB, free: 7.973 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.369e-05/0.1846, allocations: 27.97 kB / 361.6 MB, free: 7.945 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.204e-05/0.1846, allocations: 0 / 361.6 MB, free: 7.945 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002166/0.1848, allocations: 190 kB / 361.8 MB, free: 7.762 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.1848, allocations: 0 / 361.8 MB, free: 7.762 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003517/0.1852, allocations: 67.84 kB / 361.8 MB, free: 7.695 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (der_.c.v) * 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 (12): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001514/0.1867, allocations: 0.901 MB / 362.7 MB, free: 6.766 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008559/0.1876, allocations: 299.6 kB / 363 MB, free: 6.461 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.976e-06/0.1876, allocations: 0 / 363 MB, free: 6.461 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003455/0.1879, allocations: 99.86 kB / 363.1 MB, free: 6.363 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004027/0.1884, allocations: 52.59 kB / 363.2 MB, free: 6.312 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005562/0.1939, allocations: 2.982 MB / 366.1 MB, free: 3.18 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004797/0.1944, allocations: 0.748 MB / 366.9 MB, free: 2.402 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001733/0.1946, allocations: 30.28 kB / 366.9 MB, free: 2.375 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00016/0.1948, allocations: 79.41 kB / 367 MB, free: 2.297 MB / 302.1 MB Notification: Performance of SimCode: time 3.937e-06/0.1948, allocations: 0 / 367 MB, free: 2.297 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2604/0.4552, allocations: 5.086 MB / 372.1 MB, free: 25.43 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001761/0.4555, allocations: 209.8 kB / 372.3 MB, free: 25.18 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.102/2.558, allocations: 1.75 kB / 372.3 MB, free: 25.18 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_Differentiator_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_Differentiator.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/Differentiator/Differentiator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,der_.c.v,der_.opAmp.out.v,der_.opAmp.out.i Variables in the result:Vin,der(der_.c.v),der_.C,der_.R,der_.V0,der_.Vns,der_.Vps,der_.c.C,der_.c.i,der_.c.n.i,der_.c.n.v,der_.c.p.i,der_.c.p.v,der_.c.v,der_.f,der_.i1,der_.i2,der_.k,der_.n1.i,der_.n1.v,der_.n2.i,der_.n2.v,der_.opAmp.V0,der_.opAmp.Vns,der_.opAmp.Vps,der_.opAmp.homotopyType,der_.opAmp.i_s,der_.opAmp.in_n.i,der_.opAmp.in_n.v,der_.opAmp.in_p.i,der_.opAmp.in_p.v,der_.opAmp.out.i,der_.opAmp.out.v,der_.opAmp.p_in,der_.opAmp.p_out,der_.opAmp.p_s,der_.opAmp.strict,der_.opAmp.useSupply,der_.opAmp.v_in,der_.opAmp.v_out,der_.opAmp.vns,der_.opAmp.vps,der_.p1.i,der_.p1.v,der_.p2.i,der_.p2.v,der_.r.LossPower,der_.r.R,der_.r.R_actual,der_.r.T,der_.r.T_heatPort,der_.r.T_ref,der_.r.alpha,der_.r.i,der_.r.n.i,der_.r.n.v,der_.r.p.i,der_.r.p.v,der_.r.useHeatPort,der_.r.v,der_.v,der_.v1,der_.v2,f,ground.p.i,ground.p.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