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.001262/0.001262, allocations: 114.5 kB / 18.45 MB, free: 4.602 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.001276/0.001276, allocations: 190.7 kB / 21.4 MB, free: 1.664 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.384/1.384, allocations: 225.6 MB / 249.8 MB, free: 3.625 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: translateModel(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|gain.opAmp.out.v|gain.opAmp.out.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier") translateModel(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|gain.opAmp.out.v|gain.opAmp.out.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001455/0.001455, allocations: 55.92 kB / 366.8 MB, free: 408 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09569/0.09715, allocations: 52.14 MB / 419 MB, free: 12.16 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier): time 0.004296/0.1014, allocations: 2.951 MB / 421.9 MB, free: 9.203 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001253/0.1027, allocations: 0.7284 MB / 422.7 MB, free: 8.469 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001219/0.1028, allocations: 7.938 kB / 422.7 MB, free: 8.461 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001513/0.103, allocations: 47.52 kB / 422.7 MB, free: 8.414 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001948/0.1032, allocations: 111.2 kB / 422.8 MB, free: 8.305 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002837/0.1034, allocations: 123.8 kB / 422.9 MB, free: 8.184 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004467/0.1039, allocations: 410.4 kB / 423.3 MB, free: 7.781 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001924/0.1041, allocations: 91.27 kB / 423.4 MB, free: 7.684 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000184/0.1043, allocations: 147.5 kB / 423.6 MB, free: 7.539 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002239/0.1045, allocations: 175.2 kB / 423.8 MB, free: 7.367 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.255e-05/0.1046, allocations: 40 kB / 423.8 MB, free: 7.328 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.43e-05/0.1046, allocations: 48 kB / 423.8 MB, free: 7.281 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.65e-05/0.1047, allocations: 75.69 kB / 423.9 MB, free: 7.207 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001839/0.1049, allocations: 175.2 kB / 424.1 MB, free: 7.035 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004869/0.1054, allocations: 454.3 kB / 424.5 MB, free: 6.59 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.547e-06/0.1054, allocations: 3.938 kB / 424.5 MB, free: 6.586 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.1054, allocations: 0 / 424.5 MB, free: 6.586 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.151e-06/0.1054, allocations: 0 / 424.5 MB, free: 6.586 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: 61 * Number of variables: 61 Notification: Performance of Generate backend data structure: time 0.001312/0.1067, allocations: 0.6883 MB / 425.2 MB, free: 5.844 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.696e-05/0.1067, allocations: 15.89 kB / 425.2 MB, free: 5.828 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.638e-05/0.1068, allocations: 32.75 kB / 425.3 MB, free: 5.797 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004066/0.1072, allocations: 299.8 kB / 425.6 MB, free: 5.465 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.497e-05/0.1072, allocations: 20.94 kB / 425.6 MB, free: 5.445 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.086e-05/0.1073, allocations: 24.38 kB / 425.6 MB, free: 5.422 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007181/0.108, allocations: 327.9 kB / 425.9 MB, free: 5.094 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.098e-05/0.108, allocations: 0 / 425.9 MB, free: 5.094 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.743e-05/0.108, allocations: 19.98 kB / 425.9 MB, free: 5.074 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.434e-06/0.1081, allocations: 4 kB / 425.9 MB, free: 5.07 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008331/0.1089, allocations: 282 kB / 426.2 MB, free: 4.793 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001887/0.1108, allocations: 1.151 MB / 427.4 MB, free: 3.566 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008387/0.1116, allocations: 242.5 kB / 427.6 MB, free: 3.32 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003428/0.112, allocations: 108.7 kB / 427.7 MB, free: 3.211 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.019e-05/0.112, allocations: 0 / 427.7 MB, free: 3.211 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004736/0.1124, allocations: 185.5 kB / 427.9 MB, free: 3.012 MB / 350.1 MB Notification: Performance of pre-optimization done (n=13): time 1.102e-06/0.1124, allocations: 224 / 427.9 MB, free: 3.012 MB / 350.1 MB Notification: Performance of matching and sorting (n=13): time 0.002388/0.1148, allocations: 0.659 MB / 428.6 MB, free: 2.324 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.496e-05/0.1149, allocations: 122.7 kB / 428.7 MB, free: 2.18 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003286/0.1153, allocations: 278.7 kB / 428.9 MB, free: 1.898 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.384e-05/0.1153, allocations: 33.7 kB / 429 MB, free: 1.859 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001432/0.1154, allocations: 200 kB / 429.2 MB, free: 1.66 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.399e-05/0.1155, allocations: 39.69 kB / 429.2 MB, free: 1.621 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001021/0.1156, allocations: 53.89 kB / 429.3 MB, free: 1.559 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001447/0.1157, allocations: 330.8 kB / 429.6 MB, free: 1.227 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003618/0.1161, allocations: 116.4 kB / 429.7 MB, free: 1.113 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004152/0.1165, allocations: 201.6 kB / 429.9 MB, free: 0.875 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007453/0.1172, allocations: 310.2 kB / 430.2 MB, free: 0.5312 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.989e-06/0.1172, allocations: 4 kB / 430.2 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.001266/0.1185, allocations: 467.7 kB / 430.7 MB, free: 56 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.202e-05/0.1186, allocations: 37.7 kB / 430.7 MB, free: 12 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.478e-06/0.1186, allocations: 4 kB / 430.7 MB, free: 8 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003978/0.119, allocations: 88.91 kB / 430.8 MB, free: 15.91 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002105/0.1192, allocations: 39.97 kB / 430.8 MB, free: 15.88 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002875/0.122, allocations: 2.005 MB / 432.8 MB, free: 13.73 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003391/0.1224, allocations: 51.81 kB / 432.9 MB, free: 13.68 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.541e-05/0.1224, allocations: 12 kB / 432.9 MB, free: 13.67 MB / 366.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 (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.0001937/0.1226, allocations: 165.6 kB / 433.1 MB, free: 13.5 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.168e-05/0.1226, allocations: 23.86 kB / 433.1 MB, free: 13.47 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.855e-05/0.1227, allocations: 21.91 kB / 433.1 MB, free: 13.45 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.336e-06/0.1227, allocations: 7.984 kB / 433.1 MB, free: 13.44 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.533e-06/0.1227, allocations: 0 / 433.1 MB, free: 13.44 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.166e-06/0.1227, allocations: 0 / 433.1 MB, free: 13.44 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003346/0.123, allocations: 321.4 kB / 433.4 MB, free: 13.07 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.123, allocations: 0 / 433.4 MB, free: 13.07 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001402/0.1232, allocations: 23.97 kB / 433.5 MB, free: 13.05 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002795/0.1235, allocations: 80.8 kB / 433.5 MB, free: 12.97 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.586e-05/0.1235, allocations: 8.125 kB / 433.5 MB, free: 12.96 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002441/0.1259, allocations: 1.812 MB / 435.4 MB, free: 11 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.1259, allocations: 4 kB / 435.4 MB, free: 11 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001076/0.127, allocations: 365.6 kB / 435.7 MB, free: 10.62 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.775e-05/0.1271, allocations: 105 kB / 435.8 MB, free: 10.5 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.356e-05/0.1271, allocations: 4 kB / 435.8 MB, free: 10.5 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002506/0.1274, allocations: 35.95 kB / 435.9 MB, free: 10.46 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.91e-05/0.1274, allocations: 23.81 kB / 435.9 MB, free: 10.44 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.282e-05/0.1274, allocations: 7.938 kB / 435.9 MB, free: 10.43 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002063/0.1277, allocations: 201.9 kB / 436.1 MB, free: 10.24 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1277, allocations: 0 / 436.1 MB, free: 10.24 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000386/0.128, allocations: 83.84 kB / 436.2 MB, free: 10.16 MB / 366.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 (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.0001491/0.1282, allocations: 107.2 kB / 436.3 MB, free: 10.04 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001048/0.1292, allocations: 422.3 kB / 436.7 MB, free: 9.602 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.1292, allocations: 0 / 436.7 MB, free: 9.602 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004847/0.1297, allocations: 226.5 kB / 436.9 MB, free: 9.367 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003334/0.1301, allocations: 63.3 kB / 437 MB, free: 9.305 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001101/0.1312, allocations: 0.5077 MB / 437.5 MB, free: 8.773 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004/0.1316, allocations: 0.7596 MB / 438.2 MB, free: 7.984 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.558e-05/0.1316, allocations: 19.44 kB / 438.2 MB, free: 7.969 MB / 366.1 MB Notification: Performance of SimCode: time 3.21e-07/0.1316, allocations: 4 kB / 438.3 MB, free: 7.965 MB / 366.1 MB Notification: Performance of Templates: time 0.007276/0.1389, allocations: 4.771 MB / 443 MB, free: 3.203 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.makefile [Timeout 660] (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 & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/InvertingAmplifier/InvertingAmplifier.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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: 6.997950913850218]