Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.InvertingAmp.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001034/0.001034, allocations: 80.8 kB / 21.49 MB, free: 2.988 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0009915/0.0009915, allocations: 169.3 kB / 24.91 MB, free: 9.207 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9459/0.9459, allocations: 177.1 MB / 205.3 MB, free: 5.496 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.Electrical.Analog.Examples.InvertingAmp") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.523e-06/1.523e-06, allocations: 0 / 273.5 MB, free: 1.293 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.64e-05/1.792e-05, allocations: 2.312 kB / 273.5 MB, free: 1.289 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.InvertingAmp): time 0.002728/0.002746, allocations: 2.787 MB / 276.3 MB, free: 14.49 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001209/0.003955, allocations: 0.6891 MB / 276.9 MB, free: 13.79 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001234/0.004078, allocations: 4 kB / 276.9 MB, free: 13.79 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001344/0.004213, allocations: 51.44 kB / 277 MB, free: 13.74 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001629/0.004375, allocations: 99.12 kB / 277.1 MB, free: 13.64 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002538/0.004629, allocations: 79.89 kB / 277.2 MB, free: 13.56 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003355/0.004965, allocations: 390.3 kB / 277.6 MB, free: 13.18 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001539/0.005119, allocations: 93.94 kB / 277.6 MB, free: 13.09 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002393/0.005358, allocations: 223.5 kB / 277.9 MB, free: 12.87 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001431/0.005501, allocations: 123.6 kB / 278 MB, free: 12.75 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.557e-05/0.005547, allocations: 36 kB / 278 MB, free: 12.71 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.45e-05/0.005581, allocations: 36 kB / 278.1 MB, free: 12.68 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 5.034e-05/0.005631, allocations: 71.73 kB / 278.1 MB, free: 12.61 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 9.18e-05/0.005723, allocations: 119.7 kB / 278.2 MB, free: 12.49 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002323/0.005956, allocations: 251.1 kB / 278.5 MB, free: 12.24 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.595e-06/0.005958, allocations: 0 / 278.5 MB, free: 12.24 MB / 266.7 MB Notification: Performance of FrontEnd: time 6.72e-07/0.005959, allocations: 4 kB / 278.5 MB, free: 12.24 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.548e-06/0.005963, allocations: 0 / 278.5 MB, free: 12.24 MB / 266.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.0006364/0.0066, allocations: 0.5415 MB / 279 MB, free: 11.67 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.129e-05/0.006631, allocations: 12.03 kB / 279 MB, free: 11.66 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.564e-05/0.006687, allocations: 40.91 kB / 279.1 MB, free: 11.62 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001867/0.006873, allocations: 182.2 kB / 279.3 MB, free: 11.41 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.515e-05/0.006889, allocations: 16.88 kB / 279.3 MB, free: 11.39 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.711e-05/0.006916, allocations: 28.38 kB / 279.3 MB, free: 11.37 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002826/0.007198, allocations: 279.3 kB / 279.6 MB, free: 11.07 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.628e-06/0.007208, allocations: 192 / 279.6 MB, free: 11.07 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.166e-05/0.00723, allocations: 12.38 kB / 279.6 MB, free: 11.05 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.827e-06/0.007238, allocations: 15.94 kB / 279.6 MB, free: 11.04 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001103/0.007349, allocations: 73.39 kB / 279.7 MB, free: 10.97 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008068/0.008155, allocations: 0.7975 MB / 280.5 MB, free: 10.11 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001478/0.008303, allocations: 86.41 kB / 280.6 MB, free: 10.02 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.527e-05/0.008339, allocations: 24.86 kB / 280.6 MB, free: 9.992 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.732e-05/0.008356, allocations: 4 kB / 280.6 MB, free: 9.988 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001348/0.008491, allocations: 161.3 kB / 280.7 MB, free: 9.797 MB / 266.7 MB Notification: Performance of pre-optimization done (n=12): time 1.132e-06/0.008492, allocations: 4 kB / 280.7 MB, free: 9.793 MB / 266.7 MB Notification: Performance of matching and sorting (n=12): time 0.0005074/0.008999, allocations: 206.5 kB / 280.9 MB, free: 9.582 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.596e-05/0.009045, allocations: 106.8 kB / 281.1 MB, free: 9.453 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001384/0.009184, allocations: 244.8 kB / 281.3 MB, free: 9.199 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.938e-05/0.009203, allocations: 29.7 kB / 281.3 MB, free: 9.164 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.646e-05/0.009279, allocations: 191.9 kB / 281.5 MB, free: 8.973 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.308e-05/0.009302, allocations: 39.69 kB / 281.5 MB, free: 8.934 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.98e-05/0.009362, allocations: 53.91 kB / 281.6 MB, free: 8.871 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.361e-05/0.009436, allocations: 330.8 kB / 281.9 MB, free: 8.539 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.711e-05/0.009483, allocations: 53.92 kB / 282 MB, free: 8.48 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001046/0.009588, allocations: 215.2 kB / 282.2 MB, free: 8.203 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001377/0.009725, allocations: 184.2 kB / 282.4 MB, free: 7.977 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.009727, allocations: 0 / 282.4 MB, free: 7.977 MB / 266.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0002856/0.01001, allocations: 269.7 kB / 282.6 MB, free: 7.691 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.135e-05/0.01004, allocations: 33.7 kB / 282.7 MB, free: 7.652 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.633e-06/0.01005, allocations: 4 kB / 282.7 MB, free: 7.648 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002133/0.01026, allocations: 76.86 kB / 282.7 MB, free: 7.57 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.499e-05/0.01036, allocations: 39.97 kB / 282.8 MB, free: 7.531 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008573/0.01122, allocations: 1.315 MB / 284.1 MB, free: 6.125 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001371/0.01135, allocations: 43.77 kB / 284.1 MB, free: 6.082 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.268e-05/0.01137, allocations: 12.03 kB / 284.2 MB, free: 6.07 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 8.026e-05/0.01145, allocations: 133.8 kB / 284.3 MB, free: 5.93 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.002e-05/0.01147, allocations: 15.98 kB / 284.3 MB, free: 5.914 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.627e-05/0.01149, allocations: 25.77 kB / 284.3 MB, free: 5.891 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.365e-06/0.0115, allocations: 7.938 kB / 284.3 MB, free: 5.883 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.573e-06/0.0115, allocations: 0 / 284.3 MB, free: 5.883 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.788e-06/0.0115, allocations: 3.984 kB / 284.3 MB, free: 5.879 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001037/0.0116, allocations: 137.7 kB / 284.5 MB, free: 5.727 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.01161, allocations: 0 / 284.5 MB, free: 5.727 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.485e-05/0.01164, allocations: 15.98 kB / 284.5 MB, free: 5.711 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001534/0.01179, allocations: 64.75 kB / 284.5 MB, free: 5.645 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.093e-06/0.0118, allocations: 4 kB / 284.6 MB, free: 5.641 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000697/0.0125, allocations: 1.296 MB / 285.8 MB, free: 4.258 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.0125, allocations: 8.016 kB / 285.9 MB, free: 4.25 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001872/0.01269, allocations: 145.8 kB / 286 MB, free: 4.086 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.5e-05/0.01273, allocations: 23.84 kB / 286 MB, free: 4.062 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.119e-05/0.01275, allocations: 0 / 286 MB, free: 4.062 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.53e-05/0.01283, allocations: 19.98 kB / 286 MB, free: 4.043 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.699e-05/0.01289, allocations: 23.95 kB / 286.1 MB, free: 4.02 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.444e-06/0.01289, allocations: 7.938 kB / 286.1 MB, free: 4.012 MB / 266.7 MB Notification: Performance of sorting global known variables: time 6.905e-05/0.01296, allocations: 78.78 kB / 286.1 MB, free: 3.934 MB / 266.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.01296, allocations: 4 kB / 286.2 MB, free: 3.93 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002112/0.01317, allocations: 87.78 kB / 286.2 MB, free: 3.844 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 9.878e-05/0.01327, allocations: 80.41 kB / 286.3 MB, free: 3.758 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003227/0.0136, allocations: 318.8 kB / 286.6 MB, free: 3.418 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 8.596e-06/0.0136, allocations: 4 kB / 286.6 MB, free: 3.414 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001168/0.01372, allocations: 171.3 kB / 286.8 MB, free: 3.23 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001421/0.01386, allocations: 48.47 kB / 286.8 MB, free: 3.18 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007118/0.01457, allocations: 421.7 kB / 287.3 MB, free: 2.738 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.882e-05/0.01462, allocations: 92.17 kB / 287.3 MB, free: 2.629 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 6.79e-05/0.01469, allocations: 30.27 kB / 287.4 MB, free: 2.598 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000113/0.0148, allocations: 95.28 kB / 287.5 MB, free: 2.504 MB / 266.7 MB Notification: Performance of SimCode: time 8.72e-07/0.0148, allocations: 0 / 287.5 MB, free: 2.504 MB / 266.7 MB Notification: Performance of Templates: time 0.006306/0.02111, allocations: 4.261 MB / 291.7 MB, free: 14.32 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.InvertingAmp.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.InvertingAmp.sim & ./Modelica_4.1.0_Modelica.Electrical.Analog.Examples.InvertingAmp -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.InvertingAmp_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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.593832788988948]