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.000898/0.000898, allocations: 85.17 kB / 21.5 MB, free: 2.992 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.0009812/0.0009812, allocations: 143.4 kB / 24.89 MB, free: 8.742 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 0.9154/0.9154, allocations: 173.4 MB / 201.5 MB, free: 8.273 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.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 1.242e-06/1.242e-06, allocations: 0 / 268.5 MB, free: 9.742 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.131e-05/1.255e-05, allocations: 4.344 kB / 268.5 MB, free: 9.738 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.003035/0.003047, allocations: 3.468 MB / 272 MB, free: 6.27 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009323/0.00398, allocations: 0.7744 MB / 272.8 MB, free: 5.496 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000124/0.004104, allocations: 7.938 kB / 272.8 MB, free: 5.488 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001329/0.004237, allocations: 67.36 kB / 272.8 MB, free: 5.422 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001629/0.0044, allocations: 145.1 kB / 273 MB, free: 5.281 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002185/0.004618, allocations: 112.8 kB / 273.1 MB, free: 5.172 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003385/0.004956, allocations: 0.5221 MB / 273.6 MB, free: 4.648 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000152/0.005108, allocations: 104.2 kB / 273.7 MB, free: 4.535 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004298/0.005538, allocations: 287.4 kB / 274 MB, free: 4.254 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001457/0.005684, allocations: 156.3 kB / 274.1 MB, free: 4.102 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.066e-05/0.005725, allocations: 40 kB / 274.2 MB, free: 4.062 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.57e-05/0.00576, allocations: 40.5 kB / 274.2 MB, free: 4.023 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 4.99e-05/0.00581, allocations: 91.67 kB / 274.3 MB, free: 3.934 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 9.373e-05/0.005904, allocations: 159.6 kB / 274.5 MB, free: 3.777 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002448/0.006149, allocations: 326.8 kB / 274.8 MB, free: 3.457 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.495e-06/0.006151, allocations: 4 kB / 274.8 MB, free: 3.453 MB / 250.7 MB Notification: Performance of FrontEnd: time 3.61e-07/0.006152, allocations: 0 / 274.8 MB, free: 3.453 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.817e-06/0.006155, allocations: 3.938 kB / 274.8 MB, free: 3.449 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: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.0005431/0.006698, allocations: 0.6242 MB / 275.4 MB, free: 2.801 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.716e-05/0.006726, allocations: 8.031 kB / 275.4 MB, free: 2.793 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.683e-05/0.006782, allocations: 56.89 kB / 275.5 MB, free: 2.738 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001994/0.006982, allocations: 225.6 kB / 275.7 MB, free: 2.496 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.45e-05/0.006996, allocations: 21.03 kB / 275.7 MB, free: 2.477 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.591e-05/0.007022, allocations: 32.38 kB / 275.8 MB, free: 2.445 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002599/0.007282, allocations: 357 kB / 276.1 MB, free: 2.055 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.026e-05/0.007292, allocations: 4.188 kB / 276.1 MB, free: 2.051 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.655e-05/0.007309, allocations: 12.38 kB / 276.1 MB, free: 2.039 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.273e-06/0.007316, allocations: 11.94 kB / 276.1 MB, free: 2.027 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001116/0.007428, allocations: 88.48 kB / 276.2 MB, free: 1.941 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008437/0.008272, allocations: 1.039 MB / 277.3 MB, free: 0.832 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001473/0.008419, allocations: 138.5 kB / 277.4 MB, free: 0.6875 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.559e-05/0.008464, allocations: 44.83 kB / 277.4 MB, free: 0.6406 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.658e-05/0.008481, allocations: 4 kB / 277.4 MB, free: 0.6367 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.851e-05/0.008499, allocations: 46.48 kB / 277.5 MB, free: 0.582 MB / 250.7 MB Notification: Performance of pre-optimization done (n=24): time 9.62e-07/0.0085, allocations: 0 / 277.5 MB, free: 0.582 MB / 250.7 MB Notification: Performance of matching and sorting (n=24): time 0.0004947/0.008995, allocations: 295.1 kB / 277.8 MB, free: 288 kB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.006e-05/0.009015, allocations: 55.41 kB / 277.8 MB, free: 220 kB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001388/0.009154, allocations: 270.9 kB / 278.1 MB, free: 15.94 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.439e-05/0.009168, allocations: 33.7 kB / 278.1 MB, free: 15.9 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.557e-05/0.009234, allocations: 188.9 kB / 278.3 MB, free: 15.71 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.346e-05/0.009267, allocations: 75.33 kB / 278.4 MB, free: 15.64 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.016e-05/0.009318, allocations: 49.67 kB / 278.4 MB, free: 15.59 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.213e-05/0.00939, allocations: 342.7 kB / 278.8 MB, free: 15.24 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.196e-05/0.009422, allocations: 20 kB / 278.8 MB, free: 15.22 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.563e-05/0.009477, allocations: 80.67 kB / 278.9 MB, free: 15.13 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.414e-05/0.009571, allocations: 104.1 kB / 279 MB, free: 15.01 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.404e-06/0.009574, allocations: 8 kB / 279 MB, free: 15 MB / 266.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.000205/0.009779, allocations: 203.8 kB / 279.2 MB, free: 14.79 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.999e-06/0.009789, allocations: 8 kB / 279.2 MB, free: 14.78 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.657e-06/0.009793, allocations: 0 / 279.2 MB, free: 14.78 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001815/0.009974, allocations: 86.52 kB / 279.3 MB, free: 14.69 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.702e-05/0.01005, allocations: 31.91 kB / 279.3 MB, free: 14.66 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001929/0.01198, allocations: 4.158 MB / 283.5 MB, free: 10.24 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.908e-05/0.01205, allocations: 23.92 kB / 283.5 MB, free: 10.22 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.197e-05/0.01206, allocations: 8 kB / 283.5 MB, free: 10.21 MB / 266.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 7.778e-05/0.01214, allocations: 117.8 kB / 283.6 MB, free: 10.09 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.466e-05/0.01217, allocations: 35.84 kB / 283.6 MB, free: 10.05 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.624e-05/0.0122, allocations: 38.41 kB / 283.7 MB, free: 10.02 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.22e-07/0.0122, allocations: 0 / 283.7 MB, free: 10.02 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.72e-07/0.0122, allocations: 0 / 283.7 MB, free: 10.02 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.829e-06/0.01221, allocations: 7.984 kB / 283.7 MB, free: 10.01 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001545/0.01236, allocations: 181.6 kB / 283.9 MB, free: 9.812 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.01236, allocations: 0 / 283.9 MB, free: 9.812 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.27e-05/0.0124, allocations: 19.98 kB / 283.9 MB, free: 9.793 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001342/0.01254, allocations: 90.62 kB / 284 MB, free: 9.695 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.033e-06/0.01255, allocations: 0 / 284 MB, free: 9.695 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001583/0.01413, allocations: 4.153 MB / 288.1 MB, free: 5.285 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.01413, allocations: 0 / 288.1 MB, free: 5.285 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004273/0.01456, allocations: 265.9 kB / 288.4 MB, free: 5 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.409e-05/0.01461, allocations: 43.72 kB / 288.4 MB, free: 4.957 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.539e-05/0.01463, allocations: 64 / 288.4 MB, free: 4.957 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.075e-05/0.01472, allocations: 23.98 kB / 288.5 MB, free: 4.934 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.867e-05/0.01477, allocations: 28.08 kB / 288.5 MB, free: 4.906 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.626e-06/0.01477, allocations: 8 kB / 288.5 MB, free: 4.898 MB / 266.7 MB Notification: Performance of sorting global known variables: time 6.661e-05/0.01484, allocations: 100.6 kB / 288.6 MB, free: 4.797 MB / 266.7 MB Notification: Performance of sort global known variables: time 4e-08/0.01484, allocations: 0 / 288.6 MB, free: 4.797 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003482/0.01519, allocations: 123.7 kB / 288.7 MB, free: 4.676 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 (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 7.945e-05/0.01527, allocations: 88.36 kB / 288.8 MB, free: 4.578 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003514/0.01562, allocations: 488.2 kB / 289.3 MB, free: 4.059 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.719e-06/0.01562, allocations: 0 / 289.3 MB, free: 4.059 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002182/0.01584, allocations: 439.5 kB / 289.7 MB, free: 3.59 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001928/0.01604, allocations: 53.53 kB / 289.7 MB, free: 3.539 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007948/0.01683, allocations: 0.6057 MB / 290.4 MB, free: 2.902 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.738e-05/0.01689, allocations: 104.5 kB / 290.5 MB, free: 2.781 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 5.429e-05/0.01694, allocations: 18.3 kB / 290.5 MB, free: 2.766 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001106/0.01705, allocations: 99.33 kB / 290.6 MB, free: 2.668 MB / 266.7 MB Notification: Performance of SimCode: time 5.41e-07/0.01705, allocations: 0 / 290.6 MB, free: 2.668 MB / 266.7 MB Notification: Performance of Templates: time 0.006746/0.0238, allocations: 5.217 MB / 295.8 MB, free: 13.54 MB / 282.7 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=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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.609768511261791]