Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009291/0.0009291, allocations: 78.97 kB / 21.42 MB, free: 3.078 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.001026/0.001026, allocations: 148.2 kB / 24.81 MB, free: 9.27 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 1.03/1.03, allocations: 173.4 MB / 201.4 MB, free: 9.219 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: translateModel(Modelica.Electrical.Analog.Examples.InvertingAmp,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|vIn.signalSource.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp") translateModel(Modelica.Electrical.Analog.Examples.InvertingAmp,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|vIn.signalSource.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.154e-06/2.154e-06, allocations: 0 / 268.4 MB, free: 6.203 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.914e-05/2.129e-05, allocations: 2.312 kB / 268.4 MB, free: 6.199 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.InvertingAmp): time 0.003997/0.004019, allocations: 2.773 MB / 271.2 MB, free: 3.41 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001099/0.005117, allocations: 0.6271 MB / 271.8 MB, free: 2.777 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001223/0.005239, allocations: 7.938 kB / 271.8 MB, free: 2.77 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001293/0.005369, allocations: 47.56 kB / 271.9 MB, free: 2.723 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001551/0.005524, allocations: 99.12 kB / 272 MB, free: 2.625 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002182/0.005742, allocations: 91.75 kB / 272.1 MB, free: 2.535 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003044/0.006046, allocations: 390.3 kB / 272.4 MB, free: 2.152 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001646/0.006211, allocations: 83.34 kB / 272.5 MB, free: 2.07 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002629/0.006474, allocations: 219.5 kB / 272.7 MB, free: 1.855 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001339/0.006608, allocations: 127.6 kB / 272.9 MB, free: 1.73 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.361e-05/0.006651, allocations: 36 kB / 272.9 MB, free: 1.695 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.515e-05/0.006686, allocations: 32 kB / 272.9 MB, free: 1.664 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 5.041e-05/0.006737, allocations: 75.73 kB / 273 MB, free: 1.59 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 8.503e-05/0.006822, allocations: 123.7 kB / 273.1 MB, free: 1.469 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002395/0.007061, allocations: 247.1 kB / 273.4 MB, free: 1.227 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.936e-06/0.007064, allocations: 0 / 273.4 MB, free: 1.227 MB / 250.7 MB Notification: Performance of FrontEnd: time 9.72e-07/0.007065, allocations: 0 / 273.4 MB, free: 1.227 MB / 250.7 MB Notification: Performance of Transformations before backend: time 5.4e-06/0.007071, allocations: 4 kB / 273.4 MB, free: 1.223 MB / 250.7 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.0007051/0.007776, allocations: 0.6662 MB / 274 MB, free: 0.5117 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.387e-05/0.00781, allocations: 8.922 kB / 274 MB, free: 0.5039 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.482e-05/0.007874, allocations: 52.75 kB / 274.1 MB, free: 464 kB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001969/0.008071, allocations: 217 kB / 274.3 MB, free: 216 kB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.484e-05/0.008086, allocations: 20.88 kB / 274.3 MB, free: 196 kB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.502e-05/0.008111, allocations: 24.31 kB / 274.3 MB, free: 172 kB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003006/0.008412, allocations: 281 kB / 274.6 MB, free: 15.86 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.719e-06/0.008422, allocations: 4.172 kB / 274.6 MB, free: 15.86 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.68e-05/0.008438, allocations: 8.375 kB / 274.6 MB, free: 15.85 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.003e-05/0.008448, allocations: 15.94 kB / 274.7 MB, free: 15.84 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001179/0.008566, allocations: 85.38 kB / 274.7 MB, free: 15.75 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009853/0.009551, allocations: 1.008 MB / 275.7 MB, free: 14.66 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001396/0.009691, allocations: 87.14 kB / 275.8 MB, free: 14.57 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.769e-05/0.009729, allocations: 31.67 kB / 275.9 MB, free: 14.53 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.74e-05/0.009746, allocations: 4 kB / 275.9 MB, free: 14.53 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001412/0.009887, allocations: 179.5 kB / 276 MB, free: 14.31 MB / 266.7 MB Notification: Performance of pre-optimization done (n=12): time 9.21e-07/0.009888, allocations: 0 / 276 MB, free: 14.31 MB / 266.7 MB Notification: Performance of matching and sorting (n=12): time 0.0005395/0.01043, allocations: 232.9 kB / 276.3 MB, free: 14.07 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.225e-05/0.01047, allocations: 110.8 kB / 276.4 MB, free: 13.94 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002064/0.01068, allocations: 292.1 kB / 276.7 MB, free: 13.64 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.723e-05/0.01069, allocations: 33.7 kB / 276.7 MB, free: 13.6 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001009/0.01079, allocations: 258.6 kB / 276.9 MB, free: 13.34 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.434e-05/0.01082, allocations: 43.67 kB / 277 MB, free: 13.3 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.867e-05/0.01089, allocations: 51.58 kB / 277 MB, free: 13.23 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001112/0.011, allocations: 0.504 MB / 277.5 MB, free: 12.72 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.942e-05/0.01105, allocations: 49.91 kB / 277.6 MB, free: 12.66 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000123/0.01117, allocations: 260.5 kB / 277.8 MB, free: 12.32 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001626/0.01133, allocations: 240.4 kB / 278.1 MB, free: 12.03 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002471/0.01158, allocations: 4 kB / 278.1 MB, free: 12.02 MB / 266.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0003243/0.01191, allocations: 296.5 kB / 278.4 MB, free: 11.71 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.752e-05/0.01193, allocations: 41.69 kB / 278.4 MB, free: 11.66 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.8e-06/0.01194, allocations: 4 kB / 278.4 MB, free: 11.66 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002075/0.01215, allocations: 75.66 kB / 278.5 MB, free: 11.58 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.35e-05/0.01224, allocations: 43.98 kB / 278.5 MB, free: 11.54 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009878/0.01323, allocations: 1.882 MB / 280.4 MB, free: 9.543 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001402/0.01337, allocations: 47.7 kB / 280.5 MB, free: 9.496 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.333e-05/0.01338, allocations: 8 kB / 280.5 MB, free: 9.488 MB / 266.7 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 9.549e-05/0.01348, allocations: 172.5 kB / 280.6 MB, free: 9.309 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.763e-05/0.0135, allocations: 27.86 kB / 280.7 MB, free: 9.281 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.635e-05/0.01353, allocations: 29.7 kB / 280.7 MB, free: 9.254 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.675e-06/0.01353, allocations: 4 kB / 280.7 MB, free: 9.25 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.482e-06/0.01353, allocations: 0 / 280.7 MB, free: 9.25 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5e-06/0.01354, allocations: 4.172 kB / 280.7 MB, free: 9.246 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001232/0.01366, allocations: 169.1 kB / 280.9 MB, free: 9.055 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/0.01366, allocations: 0 / 280.9 MB, free: 9.055 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.576e-05/0.0137, allocations: 11.98 kB / 280.9 MB, free: 9.043 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001568/0.01386, allocations: 71.62 kB / 280.9 MB, free: 8.969 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.943e-06/0.01386, allocations: 0 / 280.9 MB, free: 8.969 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001064/0.01493, allocations: 1.866 MB / 282.8 MB, free: 6.984 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/0.01493, allocations: 192 / 282.8 MB, free: 6.984 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002327/0.01516, allocations: 204.1 kB / 283 MB, free: 6.758 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.421e-05/0.01521, allocations: 39.77 kB / 283.1 MB, free: 6.719 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.896e-05/0.01523, allocations: 8 kB / 283.1 MB, free: 6.711 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.745e-05/0.01531, allocations: 15.98 kB / 283.1 MB, free: 6.695 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.932e-05/0.01537, allocations: 35.83 kB / 283.1 MB, free: 6.66 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.091e-06/0.01538, allocations: 0 / 283.1 MB, free: 6.66 MB / 266.7 MB Notification: Performance of sorting global known variables: time 8.783e-05/0.01546, allocations: 201.1 kB / 283.3 MB, free: 6.465 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01546, allocations: 4 kB / 283.3 MB, free: 6.461 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002219/0.01569, allocations: 75.89 kB / 283.4 MB, free: 6.387 MB / 266.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 (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 7.717e-05/0.01576, allocations: 99.25 kB / 283.5 MB, free: 6.281 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003142/0.01608, allocations: 383 kB / 283.9 MB, free: 5.867 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.402e-06/0.01608, allocations: 0 / 283.9 MB, free: 5.867 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001359/0.01622, allocations: 237.5 kB / 284.1 MB, free: 5.613 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001718/0.01639, allocations: 39.12 kB / 284.1 MB, free: 5.578 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006122/0.017, allocations: 430.9 kB / 284.5 MB, free: 5.125 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.166e-05/0.01704, allocations: 80.33 kB / 284.6 MB, free: 5.027 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 5.871e-05/0.0171, allocations: 26.28 kB / 284.7 MB, free: 5 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000116/0.01722, allocations: 114.2 kB / 284.8 MB, free: 4.887 MB / 266.7 MB Notification: Performance of SimCode: time 8.11e-07/0.01722, allocations: 4 kB / 284.8 MB, free: 4.883 MB / 266.7 MB Notification: Performance of Templates: time 0.006055/0.02327, allocations: 4.379 MB / 289.1 MB, free: 0.5742 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/InvertingAmp/InvertingAmp.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.7644931469112635]