Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009804/0.0009804, allocations: 91.67 kB / 21.2 MB, free: 3.367 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001006/0.001006, allocations: 160.5 kB / 24.56 MB, free: 12 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9261/0.9261, allocations: 177 MB / 204.8 MB, free: 5.574 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|Ideal.v|With_Ron_Goff.v|With_Ron_Goff_Vknee.v",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes") translateModel(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|Ideal.v|With_Ron_Goff.v|With_Ron_Goff_Vknee.v",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.573e-06/1.573e-06, allocations: 0 / 272.9 MB, free: 1.434 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.742e-05/1.9e-05, allocations: 2.312 kB / 272.9 MB, free: 1.43 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.003396/0.003415, allocations: 3.501 MB / 276.4 MB, free: 13.91 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001273/0.004688, allocations: 0.8334 MB / 277.3 MB, free: 13.07 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001566/0.004844, allocations: 7.938 kB / 277.3 MB, free: 13.06 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001584/0.005003, allocations: 71.3 kB / 277.3 MB, free: 12.99 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001874/0.00519, allocations: 146.6 kB / 277.5 MB, free: 12.84 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003296/0.00552, allocations: 135.8 kB / 277.6 MB, free: 12.71 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003811/0.005901, allocations: 0.5285 MB / 278.1 MB, free: 12.18 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000186/0.006087, allocations: 103.6 kB / 278.2 MB, free: 12.07 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003083/0.006395, allocations: 295.4 kB / 278.5 MB, free: 11.79 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001663/0.006562, allocations: 163.5 kB / 278.7 MB, free: 11.62 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.744e-05/0.006609, allocations: 36 kB / 278.7 MB, free: 11.59 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.564e-05/0.006685, allocations: 44 kB / 278.8 MB, free: 11.55 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 4.984e-05/0.006735, allocations: 95.59 kB / 278.9 MB, free: 11.45 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001091/0.006844, allocations: 147.7 kB / 279 MB, free: 11.31 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003296/0.007173, allocations: 346.7 kB / 279.3 MB, free: 10.97 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.365e-06/0.007176, allocations: 3.938 kB / 279.3 MB, free: 10.96 MB / 266.7 MB Notification: Performance of FrontEnd: time 7.52e-07/0.007177, allocations: 0 / 279.3 MB, free: 10.96 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.55e-06/0.007182, allocations: 0 / 279.3 MB, free: 10.96 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: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.0007057/0.007888, allocations: 0.7566 MB / 280.1 MB, free: 10.17 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.553e-05/0.007923, allocations: 8.031 kB / 280.1 MB, free: 10.16 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002057/0.008129, allocations: 100.6 kB / 280.2 MB, free: 10.06 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00027/0.008399, allocations: 276.4 kB / 280.5 MB, free: 9.766 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.797e-05/0.008417, allocations: 21.03 kB / 280.5 MB, free: 9.746 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.235e-05/0.008449, allocations: 32.38 kB / 280.5 MB, free: 9.715 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003726/0.008822, allocations: 376.5 kB / 280.9 MB, free: 9.301 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.266e-05/0.008835, allocations: 192 / 280.9 MB, free: 9.301 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.353e-05/0.008858, allocations: 12.38 kB / 280.9 MB, free: 9.289 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.938e-06/0.008868, allocations: 11.94 kB / 280.9 MB, free: 9.277 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002022/0.00907, allocations: 143.8 kB / 281.1 MB, free: 9.141 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001131/0.0102, allocations: 1.393 MB / 282.5 MB, free: 7.66 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002938/0.01049, allocations: 166.9 kB / 282.6 MB, free: 7.484 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.392e-05/0.01058, allocations: 63.66 kB / 282.7 MB, free: 7.418 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.967e-05/0.0106, allocations: 4 kB / 282.7 MB, free: 7.414 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.327e-05/0.01062, allocations: 41.39 kB / 282.7 MB, free: 7.363 MB / 266.7 MB Notification: Performance of pre-optimization done (n=24): time 1.643e-06/0.01062, allocations: 4 kB / 282.7 MB, free: 7.359 MB / 266.7 MB Notification: Performance of matching and sorting (n=24): time 0.0006996/0.01132, allocations: 373.8 kB / 283.1 MB, free: 6.977 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.385e-05/0.01135, allocations: 51.41 kB / 283.1 MB, free: 6.914 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001987/0.01155, allocations: 342.2 kB / 283.5 MB, free: 6.559 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.686e-05/0.01156, allocations: 29.7 kB / 283.5 MB, free: 6.523 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000107/0.01167, allocations: 263.1 kB / 283.8 MB, free: 6.262 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.818e-05/0.01171, allocations: 75.34 kB / 283.8 MB, free: 6.188 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.531e-05/0.01176, allocations: 55.36 kB / 283.9 MB, free: 6.125 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001138/0.01188, allocations: 0.5079 MB / 284.4 MB, free: 5.605 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.737e-05/0.01194, allocations: 39.97 kB / 284.4 MB, free: 5.566 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.596e-05/0.01203, allocations: 86.41 kB / 284.5 MB, free: 5.461 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001499/0.01218, allocations: 142.2 kB / 284.7 MB, free: 5.301 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.953e-06/0.01218, allocations: 0 / 284.7 MB, free: 5.301 MB / 266.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0003191/0.0125, allocations: 272.2 kB / 284.9 MB, free: 5.016 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.308e-05/0.01251, allocations: 11.19 kB / 284.9 MB, free: 5.008 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.759e-06/0.01252, allocations: 0 / 284.9 MB, free: 5.008 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002364/0.01276, allocations: 111 kB / 285 MB, free: 4.887 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.064e-05/0.01285, allocations: 31.92 kB / 285.1 MB, free: 4.855 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002493/0.01534, allocations: 6.178 MB / 291.3 MB, free: 14.31 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.425e-05/0.01542, allocations: 27.78 kB / 291.3 MB, free: 14.29 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.262e-05/0.01544, allocations: 8 kB / 291.3 MB, free: 14.28 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 3 (Ideal.off,With_Ron_Goff.off,With_Ron_Goff_Vknee.off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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): 3 systems {(1,4), (1,4), (1,4)} Notification: Performance of prepare postOptimizeDAE: time 9.499e-05/0.01553, allocations: 168.6 kB / 291.5 MB, free: 14.1 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.31e-05/0.01557, allocations: 47.73 kB / 291.5 MB, free: 14.05 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.713e-05/0.0156, allocations: 39.17 kB / 291.5 MB, free: 14.02 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.865e-06/0.0156, allocations: 4 kB / 291.5 MB, free: 14.01 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.242e-06/0.01561, allocations: 0 / 291.5 MB, free: 14.01 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.906e-06/0.01561, allocations: 0 / 291.5 MB, free: 14.01 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002111/0.01582, allocations: 268.3 kB / 291.8 MB, free: 13.71 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.863e-06/0.01582, allocations: 0 / 291.8 MB, free: 13.71 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.609e-05/0.01587, allocations: 19.92 kB / 291.8 MB, free: 13.7 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000167/0.01603, allocations: 111.1 kB / 291.9 MB, free: 13.57 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.252e-05/0.01605, allocations: 0 / 291.9 MB, free: 13.57 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002415/0.01846, allocations: 6.175 MB / 298.1 MB, free: 7.039 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.01846, allocations: 0 / 298.1 MB, free: 7.039 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002831/0.01875, allocations: 379.3 kB / 298.5 MB, free: 6.637 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.619e-05/0.01881, allocations: 47.72 kB / 298.5 MB, free: 6.59 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.683e-05/0.01883, allocations: 7.984 kB / 298.5 MB, free: 6.582 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.689e-05/0.01893, allocations: 16 kB / 298.5 MB, free: 6.566 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.044e-05/0.01899, allocations: 32.06 kB / 298.6 MB, free: 6.535 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.093e-05/0.019, allocations: 15.97 kB / 298.6 MB, free: 6.52 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001165/0.01911, allocations: 231 kB / 298.8 MB, free: 6.297 MB / 282.7 MB Notification: Performance of sort global known variables: time 6.1e-08/0.01911, allocations: 0 / 298.8 MB, free: 6.297 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003819/0.0195, allocations: 123.7 kB / 298.9 MB, free: 6.176 MB / 282.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 (Ideal.off,With_Ron_Goff.off,With_Ron_Goff_Vknee.off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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): 3 systems {(1,4), (1,4), (1,4)} Notification: Performance of Backend phase and start with SimCode phase: time 8.385e-05/0.01958, allocations: 103.2 kB / 299 MB, free: 6.062 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0004747/0.02005, allocations: 0.65 MB / 299.7 MB, free: 5.359 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.463e-06/0.02006, allocations: 0 / 299.7 MB, free: 5.359 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002609/0.02032, allocations: 0.61 MB / 300.3 MB, free: 4.691 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002517/0.02057, allocations: 66.48 kB / 300.4 MB, free: 4.625 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000923/0.02149, allocations: 0.6144 MB / 301 MB, free: 3.984 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.524e-05/0.02155, allocations: 100.6 kB / 301.1 MB, free: 3.867 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 5.202e-05/0.0216, allocations: 22.28 kB / 301.1 MB, free: 3.848 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.595e-05/0.02164, allocations: 20.5 kB / 301.1 MB, free: 3.828 MB / 282.7 MB Notification: Performance of SimCode: time 7.51e-07/0.02164, allocations: 0 / 301.1 MB, free: 3.828 MB / 282.7 MB Notification: Performance of Templates: time 0.1009/0.1226, allocations: 4.994 MB / 306.1 MB, free: 38.97 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/CharacteristicIdealDiodes/CharacteristicIdealDiodes.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.873925205785781]