Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.000939/0.000939, allocations: 80.92 kB / 21.49 MB, free: 2.996 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.0008973/0.0008973, allocations: 170.3 kB / 24.91 MB, free: 8.723 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 1.002/1.002, allocations: 177.1 MB / 205.3 MB, free: 5.09 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.CharacteristicIdealDiodes,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|Ideal.v|With_Ron_Goff.v|With_Ron_Goff_Vknee.v",fileNamePrefix="Modelica_4.1.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.1.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.493e-06/1.493e-06, allocations: 0 / 273.5 MB, free: 1.164 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.779e-05/2.929e-05, allocations: 2.312 kB / 273.5 MB, free: 1.16 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.01057/0.0106, allocations: 3.467 MB / 276.9 MB, free: 13.68 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001707/0.0123, allocations: 0.8527 MB / 277.8 MB, free: 12.82 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001727/0.01248, allocations: 11.94 kB / 277.8 MB, free: 12.8 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001909/0.01267, allocations: 67.3 kB / 277.9 MB, free: 12.74 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002681/0.01294, allocations: 142.6 kB / 278 MB, free: 12.6 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003514/0.01645, allocations: 139.7 kB / 278.1 MB, free: 12.46 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006661/0.01712, allocations: 0.5286 MB / 278.7 MB, free: 11.93 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001955/0.01731, allocations: 104.2 kB / 278.8 MB, free: 11.82 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003993/0.01771, allocations: 291.3 kB / 279 MB, free: 11.54 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002354/0.01795, allocations: 155.5 kB / 279.2 MB, free: 11.38 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 6.252e-05/0.01801, allocations: 40 kB / 279.2 MB, free: 11.34 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.375e-05/0.0181, allocations: 43.98 kB / 279.3 MB, free: 11.3 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 6.949e-05/0.01817, allocations: 91.61 kB / 279.4 MB, free: 11.21 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001425/0.01831, allocations: 155.7 kB / 279.5 MB, free: 11.06 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004091/0.01872, allocations: 346.7 kB / 279.9 MB, free: 10.72 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.986e-06/0.01873, allocations: 0 / 279.9 MB, free: 10.72 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.573e-06/0.01873, allocations: 0 / 279.9 MB, free: 10.72 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.282e-06/0.01873, allocations: 0 / 279.9 MB, free: 10.72 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.0039/0.02263, allocations: 0.6397 MB / 280.5 MB, free: 10.05 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.645e-05/0.02267, allocations: 8.031 kB / 280.5 MB, free: 10.05 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002748/0.02295, allocations: 80.86 kB / 280.6 MB, free: 9.969 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000313/0.02326, allocations: 233.6 kB / 280.8 MB, free: 9.715 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.573e-05/0.02328, allocations: 29.03 kB / 280.8 MB, free: 9.684 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.339e-05/0.02333, allocations: 32.38 kB / 280.9 MB, free: 9.652 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004008/0.02373, allocations: 357 kB / 281.2 MB, free: 9.266 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.121e-05/0.02374, allocations: 192 / 281.2 MB, free: 9.266 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.788e-05/0.02377, allocations: 16.38 kB / 281.2 MB, free: 9.25 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.101e-05/0.02378, allocations: 11.94 kB / 281.2 MB, free: 9.238 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001796/0.02396, allocations: 92.47 kB / 281.3 MB, free: 9.148 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002456/0.02641, allocations: 1.027 MB / 282.4 MB, free: 8.059 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002451/0.02666, allocations: 138.5 kB / 282.5 MB, free: 7.914 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.929e-05/0.02674, allocations: 52.08 kB / 282.5 MB, free: 7.863 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.475e-05/0.02676, allocations: 4 kB / 282.6 MB, free: 7.859 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.009e-05/0.02679, allocations: 34.56 kB / 282.6 MB, free: 7.816 MB / 266.7 MB Notification: Performance of pre-optimization done (n=24): time 1.132e-05/0.0268, allocations: 0 / 282.6 MB, free: 7.816 MB / 266.7 MB Notification: Performance of matching and sorting (n=24): time 0.0008253/0.02763, allocations: 300.2 kB / 282.9 MB, free: 7.508 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.913e-05/0.02766, allocations: 59.41 kB / 282.9 MB, free: 7.438 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002227/0.02788, allocations: 274.9 kB / 283.2 MB, free: 7.156 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.793e-05/0.0279, allocations: 29.7 kB / 283.2 MB, free: 7.121 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.299e-05/0.02798, allocations: 189 kB / 283.4 MB, free: 6.934 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.182e-05/0.02802, allocations: 87.3 kB / 283.5 MB, free: 6.848 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.754e-05/0.02808, allocations: 45.69 kB / 283.6 MB, free: 6.797 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 9.552e-05/0.02818, allocations: 346.7 kB / 283.9 MB, free: 6.449 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.042e-05/0.02822, allocations: 19.98 kB / 283.9 MB, free: 6.43 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.945e-05/0.02828, allocations: 72.2 kB / 284 MB, free: 6.344 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001117/0.02839, allocations: 112.1 kB / 284.1 MB, free: 6.219 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.02839, allocations: 0 / 284.1 MB, free: 6.219 MB / 266.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0002602/0.02865, allocations: 207.8 kB / 284.3 MB, free: 6 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.68e-05/0.02867, allocations: 4 kB / 284.3 MB, free: 5.996 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.173e-06/0.02868, allocations: 0 / 284.3 MB, free: 5.996 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002402/0.02892, allocations: 94.48 kB / 284.4 MB, free: 5.895 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001036/0.02902, allocations: 27.92 kB / 284.4 MB, free: 5.867 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003478/0.0325, allocations: 4.154 MB / 288.6 MB, free: 1.453 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001724/0.03267, allocations: 23.84 kB / 288.6 MB, free: 1.43 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.701e-05/0.03269, allocations: 4 kB / 288.6 MB, free: 1.426 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 0.0001517/0.03284, allocations: 121.9 kB / 288.7 MB, free: 1.297 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.517e-05/0.0329, allocations: 39.89 kB / 288.8 MB, free: 1.258 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.983e-05/0.03295, allocations: 35.17 kB / 288.8 MB, free: 1.215 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.315e-06/0.03296, allocations: 4 kB / 288.8 MB, free: 1.211 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.484e-06/0.03296, allocations: 0 / 288.8 MB, free: 1.211 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.058e-06/0.03296, allocations: 3.938 kB / 288.8 MB, free: 1.207 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003085/0.03327, allocations: 185.7 kB / 289 MB, free: 1.008 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.925e-06/0.03327, allocations: 0 / 289 MB, free: 1.008 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.305e-05/0.03335, allocations: 19.98 kB / 289 MB, free: 0.9883 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002318/0.03358, allocations: 86.5 kB / 289.1 MB, free: 0.8945 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.263e-05/0.03359, allocations: 4.047 kB / 289.1 MB, free: 0.8906 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.111/0.1446, allocations: 4.142 MB / 293.2 MB, free: 22.08 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.1446, allocations: 2.375 kB / 293.2 MB, free: 22.08 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002351/0.1448, allocations: 266.3 kB / 293.5 MB, free: 21.93 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.097e-05/0.1449, allocations: 36.69 kB / 293.5 MB, free: 21.93 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.027e-05/0.1449, allocations: 5.562 kB / 293.5 MB, free: 21.93 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001061/0.145, allocations: 20.42 kB / 293.6 MB, free: 21.93 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.648e-05/0.1451, allocations: 28.47 kB / 293.6 MB, free: 21.93 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.134e-05/0.1451, allocations: 6.719 kB / 293.6 MB, free: 21.93 MB / 266.7 MB Notification: Performance of sorting global known variables: time 8.448e-05/0.1452, allocations: 106 kB / 293.7 MB, free: 21.91 MB / 266.7 MB Notification: Performance of sort global known variables: time 4e-08/0.1452, allocations: 0 / 293.7 MB, free: 21.91 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004435/0.1456, allocations: 120.6 kB / 293.8 MB, free: 21.91 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 9.378e-05/0.1457, allocations: 90.17 kB / 293.9 MB, free: 21.84 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003543/0.146, allocations: 479.6 kB / 294.4 MB, free: 21.5 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 5.791e-06/0.146, allocations: 3.531 kB / 294.4 MB, free: 21.5 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001853/0.1462, allocations: 441.4 kB / 294.8 MB, free: 21.16 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002215/0.1465, allocations: 49.62 kB / 294.8 MB, free: 21.16 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008766/0.1473, allocations: 0.6169 MB / 295.5 MB, free: 20.84 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.894e-05/0.1474, allocations: 103 kB / 295.6 MB, free: 20.77 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 7.559e-05/0.1475, allocations: 23.22 kB / 295.6 MB, free: 20.77 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001209/0.1476, allocations: 102.5 kB / 295.7 MB, free: 20.72 MB / 266.7 MB Notification: Performance of SimCode: time 7.92e-07/0.1476, allocations: 5.031 kB / 295.7 MB, free: 20.72 MB / 266.7 MB Notification: Performance of Templates: time 0.008755/0.1564, allocations: 5.226 MB / 300.9 MB, free: 19.94 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.sim & ./Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_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.8757836828008294]