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.001293/0.001293, allocations: 88.59 kB / 20.95 MB, free: 328 kB / 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.001368/0.001368, allocations: 152.8 kB / 24.25 MB, free: 3.266 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.479/1.479, allocations: 173.3 MB / 200.8 MB, free: 12.71 MB / 190.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 1.683e-06/1.683e-06, allocations: 0 / 267.3 MB, free: 10.17 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.163e-05/3.331e-05, allocations: 4.422 kB / 267.3 MB, free: 10.17 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.004621/0.004654, allocations: 3.184 MB / 270.5 MB, free: 6.965 MB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.001382/0.006037, allocations: 0.7323 MB / 271.2 MB, free: 6.227 MB / 254.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001731/0.00621, allocations: 7.938 kB / 271.2 MB, free: 6.219 MB / 254.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001841/0.006394, allocations: 67.34 kB / 271.3 MB, free: 6.152 MB / 254.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002596/0.006653, allocations: 146.6 kB / 271.5 MB, free: 6.008 MB / 254.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002987/0.006952, allocations: 111.7 kB / 271.6 MB, free: 5.898 MB / 254.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005529/0.007505, allocations: 0.5247 MB / 272.1 MB, free: 5.371 MB / 254.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000207/0.007712, allocations: 91.69 kB / 272.2 MB, free: 5.277 MB / 254.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003513/0.008063, allocations: 283.4 kB / 272.5 MB, free: 5 MB / 254.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002461/0.00831, allocations: 155.5 kB / 272.6 MB, free: 4.848 MB / 254.1 MB Notification: Performance of NFPackage.collectConstants: time 6.83e-05/0.008378, allocations: 40 kB / 272.6 MB, free: 4.809 MB / 254.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.601e-05/0.008444, allocations: 40 kB / 272.7 MB, free: 4.77 MB / 254.1 MB Notification: Performance of NFScalarize.scalarize: time 9.09e-05/0.008535, allocations: 87.67 kB / 272.8 MB, free: 4.684 MB / 254.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001688/0.008704, allocations: 151.6 kB / 272.9 MB, free: 4.535 MB / 254.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005446/0.009248, allocations: 0.5022 MB / 273.4 MB, free: 4.031 MB / 254.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.009253, allocations: 3.938 kB / 273.4 MB, free: 4.027 MB / 254.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.009254, allocations: 0 / 273.4 MB, free: 4.027 MB / 254.1 MB Notification: Performance of Transformations before backend: time 7.164e-06/0.009261, allocations: 0 / 273.4 MB, free: 4.027 MB / 254.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.001136/0.0104, allocations: 0.649 MB / 274.1 MB, free: 3.348 MB / 254.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.663e-05/0.01043, allocations: 8.031 kB / 274.1 MB, free: 3.34 MB / 254.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001302/0.01056, allocations: 76.61 kB / 274.2 MB, free: 3.266 MB / 254.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004401/0.011, allocations: 261.6 kB / 274.4 MB, free: 2.984 MB / 254.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.961e-05/0.01103, allocations: 29.03 kB / 274.4 MB, free: 2.957 MB / 254.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.902e-05/0.01108, allocations: 32.38 kB / 274.5 MB, free: 2.926 MB / 254.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006873/0.01177, allocations: 436.4 kB / 274.9 MB, free: 2.461 MB / 254.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.341e-05/0.01178, allocations: 4.125 kB / 274.9 MB, free: 2.457 MB / 254.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.729e-05/0.01182, allocations: 16.38 kB / 274.9 MB, free: 2.441 MB / 254.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.314e-05/0.01183, allocations: 11.94 kB / 274.9 MB, free: 2.43 MB / 254.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005608/0.01239, allocations: 262.5 kB / 275.2 MB, free: 2.172 MB / 254.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001949/0.01434, allocations: 1.241 MB / 276.4 MB, free: 0.8477 MB / 254.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004323/0.01478, allocations: 194.5 kB / 276.6 MB, free: 0.6484 MB / 254.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002163/0.01499, allocations: 104.8 kB / 276.7 MB, free: 0.543 MB / 254.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.025e-05/0.01502, allocations: 4 kB / 276.7 MB, free: 0.5391 MB / 254.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.489e-05/0.01506, allocations: 38.56 kB / 276.8 MB, free: 0.4922 MB / 254.1 MB Notification: Performance of pre-optimization done (n=24): time 1.543e-06/0.01506, allocations: 0 / 276.8 MB, free: 0.4922 MB / 254.1 MB Notification: Performance of matching and sorting (n=24): time 0.001493/0.01655, allocations: 490.4 kB / 277.2 MB, free: 0 / 254.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.255e-05/0.0166, allocations: 55.41 kB / 277.3 MB, free: 15.93 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000319/0.01692, allocations: 288.5 kB / 277.6 MB, free: 15.64 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 3.089e-05/0.01695, allocations: 33.7 kB / 277.6 MB, free: 15.6 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001547/0.01711, allocations: 212.4 kB / 277.8 MB, free: 15.39 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.316e-05/0.01718, allocations: 79.33 kB / 277.9 MB, free: 15.31 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.349e-05/0.01728, allocations: 49.66 kB / 277.9 MB, free: 15.26 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001564/0.01743, allocations: 338.8 kB / 278.3 MB, free: 14.92 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002054/0.01764, allocations: 79.95 kB / 278.3 MB, free: 14.84 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002264/0.01786, allocations: 124.8 kB / 278.5 MB, free: 14.7 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000417/0.01828, allocations: 204 kB / 278.7 MB, free: 14.49 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.01828, allocations: 0 / 278.7 MB, free: 14.49 MB / 270.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007848/0.01907, allocations: 363.8 kB / 279 MB, free: 14.12 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.716e-05/0.01909, allocations: 7.938 kB / 279 MB, free: 14.11 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.979e-06/0.0191, allocations: 4 kB / 279 MB, free: 14.11 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004602/0.01956, allocations: 114.5 kB / 279.1 MB, free: 13.98 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001956/0.01975, allocations: 27.92 kB / 279.2 MB, free: 13.96 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004202/0.02395, allocations: 4.599 MB / 283.8 MB, free: 9.051 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002199/0.02417, allocations: 27.84 kB / 283.8 MB, free: 9.023 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.956e-05/0.02419, allocations: 8.188 kB / 283.8 MB, free: 9.016 MB / 270.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.0001833/0.02438, allocations: 149.8 kB / 284 MB, free: 8.859 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.587e-05/0.02445, allocations: 39.81 kB / 284 MB, free: 8.82 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.231e-05/0.02452, allocations: 38.41 kB / 284 MB, free: 8.785 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.747e-06/0.02453, allocations: 4 kB / 284 MB, free: 8.781 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.174e-06/0.02453, allocations: 0 / 284 MB, free: 8.781 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.356e-06/0.02453, allocations: 0 / 284 MB, free: 8.781 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003624/0.0249, allocations: 264.9 kB / 284.3 MB, free: 8.492 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.744e-06/0.0249, allocations: 0 / 284.3 MB, free: 8.492 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001304/0.02503, allocations: 27.97 kB / 284.3 MB, free: 8.465 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003319/0.02536, allocations: 110.5 kB / 284.4 MB, free: 8.348 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.8e-05/0.02538, allocations: 8 kB / 284.4 MB, free: 8.34 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00407/0.02945, allocations: 4.58 MB / 289 MB, free: 3.457 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.263e-06/0.02945, allocations: 0 / 289 MB, free: 3.457 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006693/0.03012, allocations: 412.3 kB / 289.4 MB, free: 3.031 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001163/0.03023, allocations: 51.72 kB / 289.5 MB, free: 2.98 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.594e-05/0.03027, allocations: 4 kB / 289.5 MB, free: 2.977 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002355/0.03051, allocations: 24.11 kB / 289.5 MB, free: 2.953 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.747e-05/0.03059, allocations: 27.94 kB / 289.5 MB, free: 2.926 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.153e-05/0.03061, allocations: 15.94 kB / 289.5 MB, free: 2.91 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0002136/0.03083, allocations: 203.1 kB / 289.7 MB, free: 2.715 MB / 270.1 MB Notification: Performance of sort global known variables: time 9e-08/0.03083, allocations: 0 / 289.7 MB, free: 2.715 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0007023/0.03153, allocations: 119.7 kB / 289.9 MB, free: 2.598 MB / 270.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.0001411/0.03167, allocations: 111.2 kB / 290 MB, free: 2.477 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0009346/0.03261, allocations: 0.5547 MB / 290.5 MB, free: 1.883 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.03261, allocations: 0 / 290.5 MB, free: 1.883 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000555/0.03316, allocations: 479.7 kB / 291 MB, free: 1.375 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003826/0.03355, allocations: 45.02 kB / 291 MB, free: 1.332 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001146/0.03469, allocations: 0.6197 MB / 291.7 MB, free: 0.6836 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001843/0.03488, allocations: 194.4 kB / 291.8 MB, free: 484 kB / 270.1 MB Notification: Performance of simCode: alias equations: time 8.846e-05/0.03497, allocations: 22.28 kB / 291.9 MB, free: 464 kB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.599e-05/0.03502, allocations: 20.5 kB / 291.9 MB, free: 444 kB / 270.1 MB Notification: Performance of SimCode: time 6.51e-07/0.03502, allocations: 0 / 291.9 MB, free: 444 kB / 270.1 MB Notification: Performance of Templates: time 0.0109/0.04593, allocations: 4.927 MB / 296.8 MB, free: 11.58 MB / 286.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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/CharacteristicIdealDiodes/CharacteristicIdealDiodes.csv","/var/lib/jenkins/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: 4.442962154746056]