Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.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.00093/0.00093, allocations: 81.05 kB / 10.02 MB, free: 0.6719 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001077/0.002007, allocations: 453.8 kB / 10.46 MB, free: 236 kB / 10.45 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.001061/0.001061, allocations: 165.1 kB / 11.36 MB, free: 2.812 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001472/0.002533, allocations: 483.5 kB / 11.83 MB, free: 2.336 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8841/0.8841, allocations: 158.6 MB / 171.2 MB, free: 2.508 MB / 170.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1705/1.055, allocations: 49.5 MB / 220.7 MB, free: 1.355 MB / 218.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.CharacteristicIdealDiodes,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|Ideal.v|With_Ron_Goff.v|With_Ron_Goff_Vknee.v",fileNamePrefix="Modelica_3.2.3_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_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.052e-06/1.052e-06, allocations: 0 / 222 MB, free: 60 kB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.53e-05/1.635e-05, allocations: 2.312 kB / 222 MB, free: 56 kB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.003196/0.003212, allocations: 3.433 MB / 225.4 MB, free: 12.59 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.00129/0.004502, allocations: 0.8068 MB / 226.2 MB, free: 11.78 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001416/0.004644, allocations: 7.938 kB / 226.2 MB, free: 11.77 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001098/0.004753, allocations: 79.28 kB / 226.3 MB, free: 11.69 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002003/0.004954, allocations: 138.7 kB / 226.5 MB, free: 11.55 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00019/0.005144, allocations: 107.8 kB / 226.6 MB, free: 11.45 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003666/0.00551, allocations: 0.5248 MB / 227.1 MB, free: 10.92 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001523/0.005662, allocations: 96.28 kB / 227.2 MB, free: 10.82 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002972/0.00596, allocations: 330.4 kB / 227.5 MB, free: 10.5 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001573/0.006117, allocations: 159.5 kB / 227.7 MB, free: 10.35 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 4.701e-05/0.006164, allocations: 36 kB / 227.7 MB, free: 10.31 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.672e-05/0.006211, allocations: 40 kB / 227.7 MB, free: 10.27 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 5.73e-05/0.006268, allocations: 67.75 kB / 227.8 MB, free: 10.21 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 9.777e-05/0.006366, allocations: 127.8 kB / 227.9 MB, free: 10.08 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000272/0.006638, allocations: 302.8 kB / 228.2 MB, free: 9.785 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.173e-05/0.00665, allocations: 4 kB / 228.2 MB, free: 9.781 MB / 234.7 MB Notification: Performance of FrontEnd: time 5.91e-07/0.00665, allocations: 0 / 228.2 MB, free: 9.781 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.146e-05/0.006662, allocations: 0 / 228.2 MB, free: 9.781 MB / 234.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.001059/0.007721, allocations: 0.7097 MB / 228.9 MB, free: 9.047 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.227e-05/0.007753, allocations: 16.03 kB / 228.9 MB, free: 9.031 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.3e-05/0.007826, allocations: 60.83 kB / 229 MB, free: 8.973 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002341/0.00806, allocations: 221.6 kB / 229.2 MB, free: 8.73 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.939e-05/0.008079, allocations: 25.03 kB / 229.3 MB, free: 8.707 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.959e-05/0.008109, allocations: 28.38 kB / 229.3 MB, free: 8.68 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003584/0.008467, allocations: 353.1 kB / 229.6 MB, free: 8.297 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.25e-05/0.00848, allocations: 192 / 229.6 MB, free: 8.297 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.872e-05/0.008509, allocations: 16.38 kB / 229.6 MB, free: 8.281 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.389e-05/0.008523, allocations: 19.92 kB / 229.7 MB, free: 8.262 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001569/0.008679, allocations: 92.47 kB / 229.7 MB, free: 8.168 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001183/0.009863, allocations: 1.023 MB / 230.8 MB, free: 7.082 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000205/0.01007, allocations: 154.3 kB / 230.9 MB, free: 6.922 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.068e-05/0.01013, allocations: 40.84 kB / 231 MB, free: 6.879 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.965e-05/0.01015, allocations: 8 kB / 231 MB, free: 6.871 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.866e-05/0.01018, allocations: 42.56 kB / 231 MB, free: 6.82 MB / 234.7 MB Notification: Performance of pre-optimization done (n=24): time 1.252e-06/0.01018, allocations: 0 / 231 MB, free: 6.82 MB / 234.7 MB Notification: Performance of matching and sorting (n=24): time 0.0006828/0.01086, allocations: 296.2 kB / 231.3 MB, free: 6.516 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.687e-05/0.01089, allocations: 55.41 kB / 231.4 MB, free: 6.449 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001875/0.01108, allocations: 270.9 kB / 231.6 MB, free: 6.176 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 1.776e-05/0.01109, allocations: 25.7 kB / 231.6 MB, free: 6.145 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.974e-05/0.01118, allocations: 196.8 kB / 231.8 MB, free: 5.945 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.958e-05/0.01123, allocations: 87.3 kB / 231.9 MB, free: 5.859 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.691e-05/0.0113, allocations: 45.69 kB / 232 MB, free: 5.809 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 9.963e-05/0.0114, allocations: 346.7 kB / 232.3 MB, free: 5.461 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.266e-05/0.01145, allocations: 23.98 kB / 232.3 MB, free: 5.438 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.002e-05/0.01152, allocations: 64.27 kB / 232.4 MB, free: 5.359 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001358/0.01166, allocations: 116 kB / 232.5 MB, free: 5.23 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.01166, allocations: 0 / 232.5 MB, free: 5.23 MB / 234.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0002908/0.01195, allocations: 203.9 kB / 232.7 MB, free: 5.016 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.284e-05/0.01196, allocations: 4 kB / 232.7 MB, free: 5.012 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.719e-06/0.01197, allocations: 3.938 kB / 232.7 MB, free: 5.008 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002407/0.01221, allocations: 90.5 kB / 232.8 MB, free: 4.91 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001097/0.01232, allocations: 27.98 kB / 232.8 MB, free: 4.883 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00258/0.0149, allocations: 4.161 MB / 237 MB, free: 472 kB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001146/0.01501, allocations: 23.83 kB / 237 MB, free: 448 kB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.328e-05/0.01503, allocations: 4 kB / 237 MB, free: 444 kB / 234.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 (With_Ron_Goff_Vknee.off,With_Ron_Goff.off,Ideal.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 0.0001046/0.01513, allocations: 129.9 kB / 237.1 MB, free: 304 kB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.084e-05/0.01518, allocations: 31.91 kB / 237.2 MB, free: 272 kB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.302e-05/0.01522, allocations: 38.41 kB / 237.2 MB, free: 228 kB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.596e-06/0.01523, allocations: 4 kB / 237.2 MB, free: 224 kB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.274e-06/0.01523, allocations: 0 / 237.2 MB, free: 224 kB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.007e-06/0.01523, allocations: 0 / 237.2 MB, free: 224 kB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002217/0.01546, allocations: 173.7 kB / 237.4 MB, free: 32 kB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.01546, allocations: 4 kB / 237.4 MB, free: 28 kB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.588e-05/0.01552, allocations: 23.92 kB / 237.4 MB, free: 4 kB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.084e-05/0.0156, allocations: 43.75 kB / 237.5 MB, free: 15.96 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001854/0.01579, allocations: 82.5 kB / 237.5 MB, free: 15.87 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.371e-05/0.0158, allocations: 11.92 kB / 237.5 MB, free: 15.86 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002129/0.01793, allocations: 4.142 MB / 241.7 MB, free: 11.46 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.01793, allocations: 0 / 241.7 MB, free: 11.46 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002366/0.01817, allocations: 266.4 kB / 241.9 MB, free: 11.18 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.583e-05/0.0182, allocations: 11.98 kB / 242 MB, free: 11.16 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001341/0.01833, allocations: 20.06 kB / 242 MB, free: 11.14 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.579e-05/0.0184, allocations: 27.94 kB / 242 MB, free: 11.12 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.094e-05/0.01841, allocations: 4 kB / 242 MB, free: 11.11 MB / 250.7 MB Notification: Performance of sorting global known variables: time 9.607e-05/0.0185, allocations: 100.6 kB / 242.1 MB, free: 11.02 MB / 250.7 MB Notification: Performance of sort global known variables: time 7e-08/0.0185, allocations: 3.938 kB / 242.1 MB, free: 11.01 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0005487/0.01905, allocations: 119.7 kB / 242.2 MB, free: 10.89 MB / 250.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 9.615e-05/0.01915, allocations: 84.41 kB / 242.3 MB, free: 10.8 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0004353/0.01958, allocations: 484.6 kB / 242.8 MB, free: 10.29 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.282e-05/0.0196, allocations: 4 kB / 242.8 MB, free: 10.29 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005488/0.02015, allocations: 448.4 kB / 243.2 MB, free: 9.809 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004529/0.0206, allocations: 0.5545 MB / 243.8 MB, free: 9.145 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004022/0.02462, allocations: 0.6444 MB / 244.4 MB, free: 8.469 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.344e-05/0.02469, allocations: 96.61 kB / 244.5 MB, free: 8.355 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 7.739e-05/0.02477, allocations: 26.28 kB / 244.5 MB, free: 8.332 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001432/0.02491, allocations: 103.3 kB / 244.6 MB, free: 8.23 MB / 250.7 MB Notification: Performance of SimCode: time 5.71e-07/0.02492, allocations: 0 / 244.6 MB, free: 8.23 MB / 250.7 MB Notification: Performance of Templates: time 0.009002/0.03392, allocations: 5.429 MB / 250.1 MB, free: 2.828 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/CharacteristicIdealDiodes/CharacteristicIdealDiodes.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.732785719446838]