Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.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.0009957/0.0009957, allocations: 76.08 kB / 20.67 MB, free: 3.891 MB / 18.57 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.001248/0.001248, allocations: 149.1 kB / 23.93 MB, free: 0.625 MB / 18.57 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 0.8961/0.8961, allocations: 173.4 MB / 200.4 MB, free: 9.422 MB / 186.7 MB " [Timeout remaining time 179] 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.InvertingAmplifier,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmplifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmplifier",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.073e-06/2.073e-06, allocations: 0 / 318.5 MB, free: 6.316 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.461e-05/2.668e-05, allocations: 5.516 kB / 318.5 MB, free: 6.312 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier): time 0.003346/0.003373, allocations: 2.726 MB / 321.2 MB, free: 3.566 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001005/0.004378, allocations: 0.7051 MB / 321.9 MB, free: 2.855 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001629/0.004541, allocations: 4 kB / 321.9 MB, free: 2.852 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001688/0.004709, allocations: 51.5 kB / 322 MB, free: 2.801 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001736/0.004883, allocations: 103.1 kB / 322.1 MB, free: 2.699 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003412/0.005224, allocations: 131.7 kB / 322.2 MB, free: 2.57 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004402/0.005664, allocations: 430.1 kB / 322.6 MB, free: 2.148 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002391/0.005904, allocations: 83.67 kB / 322.7 MB, free: 2.062 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002623/0.006166, allocations: 235.4 kB / 322.9 MB, free: 1.832 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001561/0.006322, allocations: 127.6 kB / 323 MB, free: 1.707 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 5.741e-05/0.006379, allocations: 40 kB / 323.1 MB, free: 1.668 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.955e-05/0.006419, allocations: 40 kB / 323.1 MB, free: 1.629 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 6.963e-05/0.006489, allocations: 87.66 kB / 323.2 MB, free: 1.543 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001254/0.006614, allocations: 119.7 kB / 323.3 MB, free: 1.426 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005082/0.007122, allocations: 466.6 kB / 323.8 MB, free: 0.9688 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.752e-06/0.007129, allocations: 0 / 323.8 MB, free: 0.9688 MB / 282.7 MB Notification: Performance of FrontEnd: time 3.145e-06/0.007132, allocations: 7.984 kB / 323.8 MB, free: 0.9609 MB / 282.7 MB Notification: Performance of Transformations before backend: time 7.895e-06/0.00714, allocations: 0 / 323.8 MB, free: 0.9609 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 61 * Number of variables: 61 Notification: Performance of Generate backend data structure: time 0.0009257/0.008066, allocations: 0.6046 MB / 324.4 MB, free: 332 kB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.739e-05/0.008113, allocations: 8.922 kB / 324.4 MB, free: 324 kB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.389e-05/0.008167, allocations: 62.73 kB / 324.5 MB, free: 252 kB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.929e-05/0.008226, allocations: 32.75 kB / 324.5 MB, free: 220 kB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003849/0.008611, allocations: 257.2 kB / 324.8 MB, free: 15.93 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.143e-05/0.008633, allocations: 16.88 kB / 324.8 MB, free: 15.92 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.074e-05/0.008663, allocations: 24.38 kB / 324.8 MB, free: 15.89 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005091/0.009172, allocations: 382.6 kB / 325.2 MB, free: 15.5 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.101e-05/0.009183, allocations: 192 / 325.2 MB, free: 15.5 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.288e-05/0.009206, allocations: 12.12 kB / 325.2 MB, free: 15.48 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.025e-05/0.009216, allocations: 8 kB / 325.2 MB, free: 15.48 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004493/0.009666, allocations: 289.7 kB / 325.5 MB, free: 15.19 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00119/0.01086, allocations: 1.023 MB / 326.5 MB, free: 14.09 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004906/0.01135, allocations: 242.6 kB / 326.7 MB, free: 13.85 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001715/0.01152, allocations: 104.8 kB / 326.8 MB, free: 13.74 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.29e-05/0.01154, allocations: 0 / 326.8 MB, free: 13.74 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003158/0.01186, allocations: 233.2 kB / 327.1 MB, free: 13.48 MB / 298.7 MB Notification: Performance of pre-optimization done (n=13): time 9.32e-07/0.01186, allocations: 0 / 327.1 MB, free: 13.48 MB / 298.7 MB Notification: Performance of matching and sorting (n=13): time 0.001234/0.01309, allocations: 0.5862 MB / 327.6 MB, free: 12.89 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.658e-05/0.01315, allocations: 106.8 kB / 327.7 MB, free: 12.76 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002139/0.01336, allocations: 285.8 kB / 328 MB, free: 12.47 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.875e-05/0.01338, allocations: 29.7 kB / 328.1 MB, free: 12.43 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001087/0.01349, allocations: 204 kB / 328.3 MB, free: 12.23 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.935e-05/0.01352, allocations: 47.62 kB / 328.3 MB, free: 12.18 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.702e-05/0.01359, allocations: 53.89 kB / 328.4 MB, free: 12.12 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001007/0.01369, allocations: 338.8 kB / 328.7 MB, free: 11.78 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002141/0.0139, allocations: 134.1 kB / 328.8 MB, free: 11.64 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002485/0.01415, allocations: 281.9 kB / 329.1 MB, free: 11.31 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000379/0.01453, allocations: 314.8 kB / 329.4 MB, free: 10.96 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.347e-06/0.01453, allocations: 0 / 329.4 MB, free: 10.96 MB / 298.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006695/0.0152, allocations: 0.4938 MB / 329.9 MB, free: 10.45 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.614e-05/0.01524, allocations: 33.7 kB / 329.9 MB, free: 10.41 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.236e-06/0.01525, allocations: 7.938 kB / 329.9 MB, free: 10.4 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002655/0.01551, allocations: 88.86 kB / 330 MB, free: 10.31 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001096/0.01562, allocations: 43.91 kB / 330.1 MB, free: 10.27 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002057/0.01768, allocations: 1.871 MB / 331.9 MB, free: 8.281 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001973/0.01788, allocations: 59.73 kB / 332 MB, free: 8.223 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.116e-05/0.0179, allocations: 12 kB / 332 MB, free: 8.211 MB / 298.7 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 (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,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0001378/0.01803, allocations: 153.8 kB / 332.2 MB, free: 8.051 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.875e-05/0.01806, allocations: 27.81 kB / 332.2 MB, free: 8.023 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.055e-05/0.01809, allocations: 21.77 kB / 332.2 MB, free: 8.004 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.898e-06/0.0181, allocations: 8.031 kB / 332.2 MB, free: 7.996 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.976e-06/0.0181, allocations: 0 / 332.2 MB, free: 7.996 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.687e-06/0.0181, allocations: 0 / 332.2 MB, free: 7.996 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001935/0.0183, allocations: 260.6 kB / 332.5 MB, free: 7.699 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.395e-06/0.0183, allocations: 0 / 332.5 MB, free: 7.699 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.655e-05/0.01837, allocations: 23.97 kB / 332.5 MB, free: 7.676 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001836/0.01855, allocations: 84.8 kB / 332.6 MB, free: 7.59 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.248e-05/0.01856, allocations: 3.938 kB / 332.6 MB, free: 7.586 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001288/0.01985, allocations: 1.694 MB / 334.3 MB, free: 5.777 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-06/0.01985, allocations: 0 / 334.3 MB, free: 5.777 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005569/0.02041, allocations: 365.6 kB / 334.6 MB, free: 5.398 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.616e-05/0.02044, allocations: 27.84 kB / 334.7 MB, free: 5.371 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.365e-05/0.02047, allocations: 0 / 334.7 MB, free: 5.371 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001179/0.02059, allocations: 43.89 kB / 334.7 MB, free: 5.328 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.706e-05/0.02065, allocations: 19.97 kB / 334.7 MB, free: 5.309 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.438e-06/0.02066, allocations: 4 kB / 334.7 MB, free: 5.305 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.000136/0.0208, allocations: 201.2 kB / 334.9 MB, free: 5.105 MB / 298.7 MB Notification: Performance of sort global known variables: time 4e-08/0.0208, allocations: 0 / 334.9 MB, free: 5.105 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002741/0.02107, allocations: 79.83 kB / 335 MB, free: 5.027 MB / 298.7 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 (9): * Single equations (assignments): 6 * 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,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008176/0.02189, allocations: 0.9097 MB / 335.9 MB, free: 4.082 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0006522/0.02254, allocations: 458.3 kB / 336.4 MB, free: 3.605 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.02255, allocations: 3.938 kB / 336.4 MB, free: 3.602 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000268/0.02281, allocations: 227.1 kB / 336.6 MB, free: 3.367 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002783/0.02309, allocations: 52.53 kB / 336.6 MB, free: 3.316 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003951/0.02704, allocations: 3.225 MB / 339.9 MB, free: 15.9 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001176/0.02716, allocations: 150.8 kB / 340 MB, free: 15.73 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001036/0.02726, allocations: 26.28 kB / 340 MB, free: 15.7 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001054/0.02737, allocations: 80.41 kB / 340.1 MB, free: 15.63 MB / 314.7 MB Notification: Performance of SimCode: time 1.763e-06/0.02737, allocations: 4 kB / 340.1 MB, free: 15.62 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02561/0.05298, allocations: 7.684 MB / 347.8 MB, free: 8.133 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.796/7.848, allocations: 3.984 kB / 347.8 MB, free: 8.129 MB / 314.7 MB " [Timeout remaining time 652] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmplifier_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmplifier.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/InvertingAmplifier/InvertingAmplifier.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 9.544660658575594]