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.001346/0.001346, allocations: 113.2 kB / 17.73 MB, free: 5.336 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.001343/0.001343, allocations: 188.2 kB / 18.67 MB, free: 4.402 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.391/1.391, 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.001608/0.001608, allocations: 51.92 kB / 328 MB, free: 3.789 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08767/0.08929, allocations: 46.62 MB / 374.7 MB, free: 5.062 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.InvertingAmp): time 0.004099/0.09342, allocations: 2.746 MB / 377.4 MB, free: 2.301 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001205/0.09465, allocations: 0.69 MB / 378.1 MB, free: 1.602 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001276/0.09479, allocations: 4 kB / 378.1 MB, free: 1.598 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001741/0.09499, allocations: 51.5 kB / 378.2 MB, free: 1.547 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001988/0.09519, allocations: 79.27 kB / 378.2 MB, free: 1.469 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002569/0.09546, allocations: 91.81 kB / 378.3 MB, free: 1.379 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004377/0.0959, allocations: 390.3 kB / 378.7 MB, free: 0.9961 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002168/0.09613, allocations: 114.9 kB / 378.8 MB, free: 0.8828 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000182/0.09632, allocations: 147.5 kB / 379 MB, free: 0.7383 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002289/0.09656, allocations: 167.3 kB / 379.1 MB, free: 0.5742 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.648e-05/0.09663, allocations: 35.94 kB / 379.2 MB, free: 0.5391 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.419e-05/0.0967, allocations: 36 kB / 379.2 MB, free: 0.5039 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.947e-05/0.09678, allocations: 75.73 kB / 379.3 MB, free: 440 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001809/0.09697, allocations: 159.2 kB / 379.4 MB, free: 280 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1694/0.2664, allocations: 372.9 kB / 379.8 MB, free: 10.09 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.775e-06/0.2664, allocations: 0.5156 kB / 379.8 MB, free: 10.09 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.925e-06/0.2664, allocations: 0 / 379.8 MB, free: 10.09 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.308e-05/0.2664, allocations: 1.188 kB / 379.8 MB, free: 10.09 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.001341/0.2678, allocations: 0.6561 MB / 380.4 MB, free: 9.613 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.451e-05/0.2678, allocations: 9.625 kB / 380.4 MB, free: 9.613 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.419e-05/0.2679, allocations: 65.27 kB / 380.5 MB, free: 9.574 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.827e-05/0.268, allocations: 39.45 kB / 380.6 MB, free: 9.555 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003167/0.2683, allocations: 272.6 kB / 380.8 MB, free: 9.328 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.144e-05/0.2683, allocations: 17.31 kB / 380.8 MB, free: 9.328 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.708e-05/0.2684, allocations: 25.36 kB / 380.9 MB, free: 9.328 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006642/0.2691, allocations: 306.9 kB / 381.2 MB, free: 9.273 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.367e-05/0.2691, allocations: 0.7031 kB / 381.2 MB, free: 9.273 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.669e-05/0.2691, allocations: 12.03 kB / 381.2 MB, free: 9.273 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.099e-05/0.2691, allocations: 5.812 kB / 381.2 MB, free: 9.273 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007815/0.2699, allocations: 249.5 kB / 381.4 MB, free: 9.273 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001527/0.2714, allocations: 1.09 MB / 382.5 MB, free: 8.676 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008163/0.2723, allocations: 214.7 kB / 382.7 MB, free: 8.648 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003189/0.2726, allocations: 94.8 kB / 382.8 MB, free: 8.641 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.482e-05/0.2726, allocations: 3.156 kB / 382.8 MB, free: 8.641 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004869/0.2731, allocations: 169.2 kB / 383 MB, free: 8.566 MB / 318.1 MB Notification: Performance of pre-optimization done (n=12): time 1.442e-06/0.2731, allocations: 0.5 kB / 383 MB, free: 8.566 MB / 318.1 MB Notification: Performance of matching and sorting (n=12): time 0.002153/0.2753, allocations: 0.5145 MB / 383.5 MB, free: 8.406 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.015e-05/0.2754, allocations: 105.9 kB / 383.6 MB, free: 8.281 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002738/0.2756, allocations: 287.7 kB / 383.9 MB, free: 8.168 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.898e-05/0.2757, allocations: 31.08 kB / 383.9 MB, free: 8.137 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.33e-05/0.2758, allocations: 198.5 kB / 384.1 MB, free: 8.004 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.911e-05/0.2758, allocations: 45.14 kB / 384.1 MB, free: 7.977 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.101e-05/0.2759, allocations: 48.03 kB / 384.2 MB, free: 7.961 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.486e-05/0.276, allocations: 341.7 kB / 384.5 MB, free: 7.645 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003374/0.2763, allocations: 92.91 kB / 384.6 MB, free: 7.645 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000362/0.2767, allocations: 198.3 kB / 384.8 MB, free: 7.512 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006293/0.2773, allocations: 306.3 kB / 385.1 MB, free: 7.363 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.2773, allocations: 7.938 kB / 385.1 MB, free: 7.355 MB / 318.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001135/0.2785, allocations: 418.3 kB / 385.5 MB, free: 7.27 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.739e-05/0.2785, allocations: 33.17 kB / 385.6 MB, free: 7.238 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.061e-06/0.2785, allocations: 3.875 kB / 385.6 MB, free: 7.238 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003315/0.2788, allocations: 79.55 kB / 385.6 MB, free: 7.223 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002087/0.2791, allocations: 48.69 kB / 385.7 MB, free: 7.223 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002042/0.2811, allocations: 1.715 MB / 387.4 MB, free: 5.852 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003441/0.2815, allocations: 55.42 kB / 387.5 MB, free: 5.832 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.026e-05/0.2815, allocations: 14.36 kB / 387.5 MB, free: 5.832 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.0001184/0.2816, allocations: 157.8 kB / 387.6 MB, free: 5.699 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.556e-05/0.2817, allocations: 24.66 kB / 387.7 MB, free: 5.688 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.564e-05/0.2817, allocations: 25.59 kB / 387.7 MB, free: 5.676 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.468e-06/0.2817, allocations: 1.922 kB / 387.7 MB, free: 5.676 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.024e-06/0.2817, allocations: 6.156 kB / 387.7 MB, free: 5.676 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.727e-06/0.2818, allocations: 1.625 kB / 387.7 MB, free: 5.676 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002478/0.282, allocations: 301.5 kB / 388 MB, free: 5.445 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.245e-06/0.282, allocations: 1.062 kB / 388 MB, free: 5.445 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001214/0.2821, allocations: 20.8 kB / 388 MB, free: 5.441 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002531/0.2824, allocations: 77.44 kB / 388.1 MB, free: 5.414 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.502e-05/0.2824, allocations: 3.859 kB / 388.1 MB, free: 5.414 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00179/0.2842, allocations: 1.705 MB / 389.8 MB, free: 3.898 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.223e-06/0.2842, allocations: 0 / 389.8 MB, free: 3.898 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009875/0.2852, allocations: 312.5 kB / 390.1 MB, free: 3.762 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.169e-05/0.2853, allocations: 118.8 kB / 390.2 MB, free: 3.641 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.688e-05/0.2854, allocations: 3.703 kB / 390.2 MB, free: 3.641 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002454/0.2856, allocations: 34.67 kB / 390.2 MB, free: 3.633 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.069e-05/0.2857, allocations: 21.84 kB / 390.3 MB, free: 3.629 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.248e-05/0.2857, allocations: 2.969 kB / 390.3 MB, free: 3.629 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001802/0.2859, allocations: 210.8 kB / 390.5 MB, free: 3.508 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2859, allocations: 0 / 390.5 MB, free: 3.508 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003317/0.2863, allocations: 76.02 kB / 390.6 MB, free: 3.496 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.001171/0.2874, allocations: 0.8473 MB / 391.4 MB, free: 2.828 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0008994/0.2883, allocations: 417.4 kB / 391.8 MB, free: 2.59 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.464e-06/0.2884, allocations: 0 / 391.8 MB, free: 2.59 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004307/0.2888, allocations: 219.9 kB / 392 MB, free: 2.449 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002721/0.2891, allocations: 42.45 kB / 392.1 MB, free: 2.434 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004578/0.2937, allocations: 3.006 MB / 395.1 MB, free: 480 kB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003008/0.294, allocations: 0.7591 MB / 395.8 MB, free: 15.76 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001027/0.2941, allocations: 29.03 kB / 395.9 MB, free: 15.76 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001027/0.2942, allocations: 74.38 kB / 395.9 MB, free: 15.7 MB / 334.1 MB Notification: Performance of SimCode: time 2.91e-07/0.2942, allocations: 1.344 kB / 395.9 MB, free: 15.7 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03547/0.3297, allocations: 6.8 MB / 402.7 MB, free: 13.57 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.35/11.68, allocations: 4.172 kB / 402.7 MB, free: 13.57 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