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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001341/0.001341, allocations: 112.6 kB / 18.49 MB, free: 4.562 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001242/0.001242, allocations: 193 kB / 21.43 MB, free: 1.633 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.399/1.399, allocations: 225.6 MB / 249.8 MB, free: 3.613 MB / 190.1 MB " [Timeout remaining time 178] 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Differentiator,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_Differentiator",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001721/0.001721, allocations: 51.91 kB / 366.4 MB, free: 0.8086 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1013/0.103, allocations: 52.15 MB / 418.5 MB, free: 12.57 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Differentiator): time 0.004406/0.1074, allocations: 2.865 MB / 421.4 MB, free: 9.691 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001339/0.1087, allocations: 0.7246 MB / 422.1 MB, free: 8.961 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001422/0.1089, allocations: 7.938 kB / 422.1 MB, free: 8.953 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001639/0.109, allocations: 47.56 kB / 422.2 MB, free: 8.906 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002015/0.1092, allocations: 99.19 kB / 422.3 MB, free: 8.809 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002843/0.1095, allocations: 111.8 kB / 422.4 MB, free: 8.699 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004189/0.1099, allocations: 394.5 kB / 422.8 MB, free: 8.312 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002031/0.1102, allocations: 91.27 kB / 422.8 MB, free: 8.215 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002211/0.1104, allocations: 155.4 kB / 423 MB, free: 8.062 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002019/0.1106, allocations: 159.3 kB / 423.2 MB, free: 7.906 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.59e-05/0.1106, allocations: 43.94 kB / 423.2 MB, free: 7.863 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.386e-05/0.1107, allocations: 36 kB / 423.2 MB, free: 7.828 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.908e-05/0.1108, allocations: 83.69 kB / 423.3 MB, free: 7.746 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001523/0.1109, allocations: 163.2 kB / 423.5 MB, free: 7.586 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004662/0.1114, allocations: 430.4 kB / 423.9 MB, free: 7.164 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.616e-06/0.1114, allocations: 0 / 423.9 MB, free: 7.164 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.1114, allocations: 0 / 423.9 MB, free: 7.164 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.803e-06/0.1114, allocations: 0 / 423.9 MB, free: 7.164 MB / 350.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.00129/0.1127, allocations: 0.6612 MB / 424.6 MB, free: 6.449 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.845e-05/0.1127, allocations: 8.031 kB / 424.6 MB, free: 6.441 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.564e-05/0.1127, allocations: 8.75 kB / 424.6 MB, free: 6.434 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.372e-05/0.1128, allocations: 66.66 kB / 424.6 MB, free: 6.359 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.847e-05/0.1129, allocations: 36.7 kB / 424.7 MB, free: 6.324 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004132/0.1133, allocations: 296.7 kB / 425 MB, free: 5.996 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.403e-05/0.1133, allocations: 20.94 kB / 425 MB, free: 5.977 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.07e-05/0.1134, allocations: 24.38 kB / 425 MB, free: 5.953 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006964/0.1141, allocations: 319.6 kB / 425.3 MB, free: 5.633 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.939e-06/0.1141, allocations: 0 / 425.3 MB, free: 5.633 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.907e-05/0.1141, allocations: 8 kB / 425.3 MB, free: 5.625 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.468e-06/0.1141, allocations: 12 kB / 425.3 MB, free: 5.613 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008025/0.1149, allocations: 270 kB / 425.6 MB, free: 5.348 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001795/0.1167, allocations: 1.119 MB / 426.7 MB, free: 4.152 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008933/0.1176, allocations: 234.6 kB / 427 MB, free: 3.914 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003375/0.118, allocations: 104.7 kB / 427.1 MB, free: 3.809 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.936e-05/0.118, allocations: 4 kB / 427.1 MB, free: 3.805 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004511/0.1184, allocations: 161 kB / 427.2 MB, free: 3.629 MB / 350.1 MB Notification: Performance of pre-optimization done (n=12): time 1.352e-06/0.1184, allocations: 3.938 kB / 427.2 MB, free: 3.625 MB / 350.1 MB Notification: Performance of matching and sorting (n=12): time 0.001084/0.1195, allocations: 321.3 kB / 427.5 MB, free: 3.305 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.238e-05/0.1196, allocations: 81.05 kB / 427.6 MB, free: 3.207 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003035/0.1199, allocations: 274.5 kB / 427.9 MB, free: 2.93 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.522e-05/0.1199, allocations: 25.7 kB / 427.9 MB, free: 2.898 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001395/0.12, allocations: 195.9 kB / 428.1 MB, free: 2.703 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.277e-05/0.1201, allocations: 43.67 kB / 428.1 MB, free: 2.66 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.898e-05/0.1202, allocations: 49.66 kB / 428.2 MB, free: 2.605 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001454/0.1203, allocations: 330.8 kB / 428.5 MB, free: 2.273 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003617/0.1207, allocations: 108.2 kB / 428.6 MB, free: 2.164 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004311/0.1211, allocations: 192.9 kB / 428.8 MB, free: 1.938 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007256/0.1218, allocations: 307.7 kB / 429.1 MB, free: 1.594 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.1218, allocations: 0 / 429.1 MB, free: 1.594 MB / 350.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.000911/0.1227, allocations: 365.4 kB / 429.5 MB, free: 1.227 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.506e-05/0.1228, allocations: 34.05 kB / 429.5 MB, free: 1.188 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.334e-06/0.1228, allocations: 11.94 kB / 429.5 MB, free: 1.176 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.508e-05/0.1228, allocations: 4 kB / 429.5 MB, free: 1.172 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002886/0.1231, allocations: 63.89 kB / 429.6 MB, free: 1.109 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.725e-05/0.1231, allocations: 11.92 kB / 429.6 MB, free: 1.098 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002975/0.1234, allocations: 47.8 kB / 429.6 MB, free: 1.051 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.174e-05/0.1234, allocations: 8 kB / 429.6 MB, free: 1.043 MB / 350.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.0001419/0.1236, allocations: 149.8 kB / 429.8 MB, free: 0.8867 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.035e-05/0.1236, allocations: 19.86 kB / 429.8 MB, free: 0.8672 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.543e-05/0.1237, allocations: 25.7 kB / 429.8 MB, free: 0.8359 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.494e-06/0.1237, allocations: 0 / 429.8 MB, free: 0.8359 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.53e-06/0.1237, allocations: 3.938 kB / 429.8 MB, free: 0.832 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.607e-06/0.1237, allocations: 0 / 429.8 MB, free: 0.832 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003038/0.124, allocations: 321.4 kB / 430.1 MB, free: 480 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/0.124, allocations: 0 / 430.1 MB, free: 480 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002477/0.1242, allocations: 47.89 kB / 430.2 MB, free: 432 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.174e-06/0.1242, allocations: 0 / 430.2 MB, free: 432 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.804e-05/0.1243, allocations: 8 kB / 430.2 MB, free: 424 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.272e-06/0.1243, allocations: 0 / 430.2 MB, free: 424 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/0.1243, allocations: 3.938 kB / 430.2 MB, free: 420 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001122/0.1254, allocations: 364.7 kB / 430.6 MB, free: 36 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.815e-05/0.1255, allocations: 104.9 kB / 430.7 MB, free: 15.91 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.819e-05/0.1255, allocations: 8.047 kB / 430.7 MB, free: 15.91 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002358/0.1258, allocations: 27.97 kB / 430.7 MB, free: 15.88 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.145e-05/0.1258, allocations: 27.91 kB / 430.7 MB, free: 15.85 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.303e-05/0.1258, allocations: 4 kB / 430.7 MB, free: 15.85 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002034/0.126, allocations: 194 kB / 430.9 MB, free: 15.66 MB / 366.1 MB Notification: Performance of sort global known variables: time 6e-08/0.126, allocations: 0 / 430.9 MB, free: 15.66 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002956/0.1263, allocations: 63.89 kB / 431 MB, free: 15.6 MB / 366.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.001428/0.1278, allocations: 0.9094 MB / 431.9 MB, free: 14.66 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008492/0.1286, allocations: 283.3 kB / 432.2 MB, free: 14.37 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.1286, allocations: 0 / 432.2 MB, free: 14.37 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004344/0.129, allocations: 100.4 kB / 432.3 MB, free: 14.27 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003158/0.1294, allocations: 52.41 kB / 432.3 MB, free: 14.22 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004779/0.1341, allocations: 2.904 MB / 435.2 MB, free: 11.16 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003594/0.1345, allocations: 0.7557 MB / 436 MB, free: 10.38 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001175/0.1346, allocations: 26.28 kB / 436 MB, free: 10.35 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001482/0.1348, allocations: 79.41 kB / 436.1 MB, free: 10.27 MB / 366.1 MB Notification: Performance of SimCode: time 8.72e-07/0.1348, allocations: 0 / 436.1 MB, free: 10.27 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02592/0.1607, allocations: 5.595 MB / 441.7 MB, free: 4.832 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.035/8.196, allocations: 4.062 kB / 441.7 MB, free: 4.828 MB / 366.1 MB " [Timeout remaining time 652] (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 --stepSize=0.001 --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) [Timeout 52.5] 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) [Timeout 660] "" [Timeout remaining time 660] "" 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 [Calling sys.exit(0), Time elapsed: 10.744846732006408]