Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.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.00138/0.00138, allocations: 96.03 kB / 21.18 MB, free: 0.5312 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.001386/0.001386, allocations: 187.5 kB / 24.45 MB, free: 3.867 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.474/1.474, allocations: 225.7 MB / 253.3 MB, free: 12.86 MB / 206.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.CharacteristicIdealDiodes,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|Ideal.v|With_Ron_Goff.v|With_Ron_Goff_Vknee.v",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001567/0.001567, allocations: 51.91 kB / 371.6 MB, free: 9.191 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2394/0.2409, allocations: 52.18 MB / 423.8 MB, free: 14.51 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.005042/0.246, allocations: 3.179 MB / 427 MB, free: 11.32 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001557/0.2475, allocations: 0.7323 MB / 427.7 MB, free: 10.58 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002419/0.2478, allocations: 7.938 kB / 427.7 MB, free: 10.57 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002172/0.248, allocations: 67.36 kB / 427.8 MB, free: 10.5 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002642/0.2483, allocations: 134.8 kB / 427.9 MB, free: 10.37 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003167/0.2486, allocations: 111.8 kB / 428 MB, free: 10.26 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005514/0.2491, allocations: 0.5055 MB / 428.6 MB, free: 9.754 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002098/0.2493, allocations: 95.69 kB / 428.6 MB, free: 9.656 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000247/0.2496, allocations: 191.4 kB / 428.8 MB, free: 9.469 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002485/0.2498, allocations: 179.1 kB / 429 MB, free: 9.293 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.722e-05/0.2499, allocations: 40 kB / 429 MB, free: 9.254 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.81e-05/0.25, allocations: 40 kB / 429.1 MB, free: 9.215 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.41e-05/0.2501, allocations: 91.56 kB / 429.2 MB, free: 9.125 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001897/0.2502, allocations: 191.2 kB / 429.4 MB, free: 8.938 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005297/0.2508, allocations: 497.7 kB / 429.9 MB, free: 8.453 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.2508, allocations: 0 / 429.9 MB, free: 8.453 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.794e-06/0.2508, allocations: 0 / 429.9 MB, free: 8.453 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.125e-06/0.2508, allocations: 4 kB / 429.9 MB, free: 8.449 MB / 334.1 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.001154/0.2519, allocations: 0.6636 MB / 430.5 MB, free: 7.758 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.545e-05/0.252, allocations: 11.97 kB / 430.5 MB, free: 7.746 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.675e-05/0.2521, allocations: 52.61 kB / 430.6 MB, free: 7.695 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004507/0.2525, allocations: 254.3 kB / 430.8 MB, free: 7.422 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.23e-05/0.2526, allocations: 29.03 kB / 430.9 MB, free: 7.395 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.677e-05/0.2526, allocations: 28.38 kB / 430.9 MB, free: 7.367 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007027/0.2533, allocations: 440.2 kB / 431.3 MB, free: 6.902 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.364e-05/0.2533, allocations: 0 / 431.3 MB, free: 6.902 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.346e-05/0.2534, allocations: 12 kB / 431.3 MB, free: 6.891 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.909e-06/0.2534, allocations: 8 kB / 431.3 MB, free: 6.883 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005571/0.2539, allocations: 270.4 kB / 431.6 MB, free: 6.621 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001933/0.2559, allocations: 1.217 MB / 432.8 MB, free: 5.324 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004295/0.2563, allocations: 213.8 kB / 433 MB, free: 5.109 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002076/0.2565, allocations: 92.81 kB / 433.1 MB, free: 5.016 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.1e-05/0.2565, allocations: 4 kB / 433.1 MB, free: 5.012 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.259e-05/0.2566, allocations: 34.56 kB / 433.2 MB, free: 4.969 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.533e-06/0.2566, allocations: 0 / 433.2 MB, free: 4.969 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.001436/0.258, allocations: 487.2 kB / 433.6 MB, free: 4.48 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.297e-05/0.258, allocations: 59.34 kB / 433.7 MB, free: 4.41 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003131/0.2583, allocations: 284.6 kB / 434 MB, free: 4.117 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.557e-05/0.2584, allocations: 29.7 kB / 434 MB, free: 4.082 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001605/0.2585, allocations: 220.4 kB / 434.2 MB, free: 3.863 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.132e-05/0.2586, allocations: 79.27 kB / 434.3 MB, free: 3.785 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.162e-05/0.2587, allocations: 53.7 kB / 434.3 MB, free: 3.727 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001606/0.2589, allocations: 338.8 kB / 434.7 MB, free: 3.387 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002046/0.2591, allocations: 83.97 kB / 434.8 MB, free: 3.305 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002274/0.2593, allocations: 124.2 kB / 434.9 MB, free: 3.168 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003988/0.2597, allocations: 196.1 kB / 435.1 MB, free: 2.961 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.424e-06/0.2597, allocations: 4 kB / 435.1 MB, free: 2.957 MB / 334.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007265/0.2604, allocations: 347.7 kB / 435.4 MB, free: 2.602 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.607e-05/0.2604, allocations: 4 kB / 435.4 MB, free: 2.598 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.933e-06/0.2604, allocations: 4 kB / 435.4 MB, free: 2.594 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004071/0.2609, allocations: 114.4 kB / 435.5 MB, free: 2.473 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001776/0.261, allocations: 40.03 kB / 435.6 MB, free: 2.434 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004493/0.2655, allocations: 4.589 MB / 440.2 MB, free: 13.54 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002136/0.2657, allocations: 23.88 kB / 440.2 MB, free: 13.52 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.209e-05/0.2658, allocations: 12 kB / 440.2 MB, free: 13.5 MB / 350.1 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 0.0001822/0.2659, allocations: 149.8 kB / 440.3 MB, free: 13.35 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.077e-05/0.266, allocations: 31.81 kB / 440.4 MB, free: 13.32 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.317e-05/0.2661, allocations: 34.41 kB / 440.4 MB, free: 13.29 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.661e-06/0.2661, allocations: 7.938 kB / 440.4 MB, free: 13.28 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.404e-06/0.2661, allocations: 4.062 kB / 440.4 MB, free: 13.27 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.377e-06/0.2661, allocations: 0 / 440.4 MB, free: 13.27 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003666/0.2664, allocations: 261.1 kB / 440.7 MB, free: 12.99 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.993e-06/0.2664, allocations: 0 / 440.7 MB, free: 12.99 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000118/0.2666, allocations: 19.98 kB / 440.7 MB, free: 12.97 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003335/0.2669, allocations: 118.4 kB / 440.8 MB, free: 12.84 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.437e-05/0.2669, allocations: 0 / 440.8 MB, free: 12.84 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004108/0.271, allocations: 4.584 MB / 445.4 MB, free: 7.957 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.271, allocations: 3.938 kB / 445.4 MB, free: 7.953 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006454/0.2717, allocations: 393.9 kB / 445.8 MB, free: 7.543 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001232/0.2718, allocations: 51.7 kB / 445.8 MB, free: 7.492 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.469e-05/0.2718, allocations: 4 kB / 445.8 MB, free: 7.488 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000237/0.2721, allocations: 24.2 kB / 445.9 MB, free: 7.465 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.833e-05/0.2721, allocations: 23.95 kB / 445.9 MB, free: 7.441 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.801e-05/0.2722, allocations: 8 kB / 445.9 MB, free: 7.434 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002122/0.2724, allocations: 211 kB / 446.1 MB, free: 7.23 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2724, allocations: 4 kB / 446.1 MB, free: 7.227 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000673/0.273, allocations: 115.8 kB / 446.2 MB, free: 7.113 MB / 350.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 (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 0.0001244/0.2732, allocations: 107.2 kB / 446.3 MB, free: 6.996 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009357/0.2741, allocations: 0.565 MB / 446.9 MB, free: 6.395 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.896e-06/0.2741, allocations: 0 / 446.9 MB, free: 6.395 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005602/0.2747, allocations: 475.7 kB / 447.3 MB, free: 5.891 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003832/0.275, allocations: 48.69 kB / 447.4 MB, free: 5.844 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001199/0.2762, allocations: 0.6572 MB / 448 MB, free: 5.152 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001936/0.2764, allocations: 195.2 kB / 448.2 MB, free: 4.934 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.12e-05/0.2765, allocations: 27.42 kB / 448.3 MB, free: 4.906 MB / 350.1 MB Notification: Performance of SimCode: time 5.41e-07/0.2765, allocations: 0 / 448.3 MB, free: 4.906 MB / 350.1 MB Notification: Performance of Templates: time 0.01085/0.2874, allocations: 8.309 MB / 456.6 MB, free: 12.6 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/CharacteristicIdealDiodes/CharacteristicIdealDiodes.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.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: 7.869327476248145]