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.001013/0.001013, allocations: 72.08 kB / 21.69 MB, free: 2.863 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.0009509/0.0009509, allocations: 145.1 kB / 24.97 MB, free: 8.812 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.9295/0.9295, allocations: 173.4 MB / 201.5 MB, free: 9.328 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.543e-06/1.543e-06, allocations: 0 / 268.1 MB, free: 6.73 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.133e-05/2.287e-05, allocations: 2.312 kB / 268.1 MB, free: 6.727 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.003216/0.003239, allocations: 3.466 MB / 271.5 MB, free: 3.242 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008845/0.004124, allocations: 0.7439 MB / 272.3 MB, free: 2.492 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001427/0.004266, allocations: 7.938 kB / 272.3 MB, free: 2.484 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001601/0.004427, allocations: 67.3 kB / 272.4 MB, free: 2.418 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001599/0.004586, allocations: 146.6 kB / 272.5 MB, free: 2.273 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002406/0.004827, allocations: 111.8 kB / 272.6 MB, free: 2.164 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003738/0.005201, allocations: 0.5208 MB / 273.1 MB, free: 1.641 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001791/0.00538, allocations: 95.67 kB / 273.2 MB, free: 1.543 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002445/0.005625, allocations: 287.4 kB / 273.5 MB, free: 1.262 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001605/0.005785, allocations: 151.6 kB / 273.7 MB, free: 1.113 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.916e-05/0.005834, allocations: 40 kB / 273.7 MB, free: 1.074 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.963e-05/0.005874, allocations: 43.94 kB / 273.7 MB, free: 1.031 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 5.62e-05/0.00593, allocations: 95.59 kB / 273.8 MB, free: 0.9375 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000106/0.006036, allocations: 151.7 kB / 274 MB, free: 0.7891 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002936/0.00633, allocations: 334.7 kB / 274.3 MB, free: 472 kB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.405e-06/0.006332, allocations: 0 / 274.3 MB, free: 472 kB / 250.7 MB Notification: Performance of FrontEnd: time 9.32e-07/0.006333, allocations: 0 / 274.3 MB, free: 472 kB / 250.7 MB Notification: Performance of Transformations before backend: time 4.799e-06/0.006338, allocations: 0 / 274.3 MB, free: 472 kB / 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.0007171/0.007055, allocations: 0.7489 MB / 275.1 MB, free: 15.68 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.636e-05/0.007091, allocations: 12.03 kB / 275.1 MB, free: 15.66 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.674e-05/0.007188, allocations: 72.66 kB / 275.1 MB, free: 15.59 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002881/0.007476, allocations: 264.4 kB / 275.4 MB, free: 15.31 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.583e-05/0.007502, allocations: 21.03 kB / 275.4 MB, free: 15.29 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.844e-05/0.00754, allocations: 32.38 kB / 275.5 MB, free: 15.26 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004379/0.007978, allocations: 380.4 kB / 275.8 MB, free: 14.84 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.118e-05/0.007989, allocations: 192 / 275.8 MB, free: 14.84 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.4e-05/0.008013, allocations: 16.38 kB / 275.8 MB, free: 14.82 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.264e-05/0.008026, allocations: 11.94 kB / 275.8 MB, free: 14.81 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002296/0.008256, allocations: 135.8 kB / 276 MB, free: 14.68 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001392/0.009648, allocations: 1.397 MB / 277.4 MB, free: 13.19 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002386/0.009887, allocations: 159 kB / 277.5 MB, free: 13.02 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.824e-05/0.009985, allocations: 59.66 kB / 277.6 MB, free: 12.96 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.246e-05/0.01001, allocations: 7.938 kB / 277.6 MB, free: 12.95 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.263e-05/0.01004, allocations: 41.39 kB / 277.6 MB, free: 12.9 MB / 266.7 MB Notification: Performance of pre-optimization done (n=24): time 2.865e-06/0.01004, allocations: 3.984 kB / 277.6 MB, free: 12.9 MB / 266.7 MB Notification: Performance of matching and sorting (n=24): time 0.0007683/0.01081, allocations: 367 kB / 278 MB, free: 12.52 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.443e-05/0.01084, allocations: 55.41 kB / 278.1 MB, free: 12.46 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002061/0.01104, allocations: 334.2 kB / 278.4 MB, free: 12.11 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.842e-05/0.01106, allocations: 33.7 kB / 278.4 MB, free: 12.07 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001093/0.01117, allocations: 259.1 kB / 278.7 MB, free: 11.82 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.183e-05/0.01121, allocations: 79.33 kB / 278.7 MB, free: 11.74 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.854e-05/0.01127, allocations: 55.31 kB / 278.8 MB, free: 11.68 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001307/0.0114, allocations: 0.5079 MB / 279.3 MB, free: 11.16 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.968e-05/0.01147, allocations: 39.97 kB / 279.3 MB, free: 11.12 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.176e-05/0.01156, allocations: 94.34 kB / 279.4 MB, free: 11 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001584/0.01172, allocations: 138.3 kB / 279.6 MB, free: 10.85 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.01172, allocations: 0 / 279.6 MB, free: 10.85 MB / 266.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0003309/0.01205, allocations: 268.2 kB / 279.8 MB, free: 10.57 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.587e-05/0.01207, allocations: 11.98 kB / 279.8 MB, free: 10.55 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.509e-06/0.01207, allocations: 64 / 279.8 MB, free: 10.55 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002449/0.01232, allocations: 111 kB / 280 MB, free: 10.43 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.976e-05/0.01241, allocations: 27.92 kB / 280 MB, free: 10.41 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002789/0.0152, allocations: 6.181 MB / 286.2 MB, free: 3.859 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.596e-05/0.01528, allocations: 23.83 kB / 286.2 MB, free: 3.836 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.263e-05/0.0153, allocations: 8 kB / 286.2 MB, free: 3.828 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 (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.0001004/0.0154, allocations: 176.5 kB / 286.4 MB, free: 3.645 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.094e-05/0.01544, allocations: 39.88 kB / 286.4 MB, free: 3.605 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.793e-05/0.01546, allocations: 34.41 kB / 286.4 MB, free: 3.57 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.52e-07/0.01547, allocations: 4 kB / 286.4 MB, free: 3.566 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.453e-06/0.01547, allocations: 0 / 286.4 MB, free: 3.566 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.306e-06/0.01547, allocations: 0 / 286.4 MB, free: 3.566 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002073/0.01568, allocations: 264.3 kB / 286.7 MB, free: 3.273 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.422e-06/0.01568, allocations: 128 / 286.7 MB, free: 3.273 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.507e-05/0.01572, allocations: 23.98 kB / 286.7 MB, free: 3.25 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001711/0.0159, allocations: 98.98 kB / 286.8 MB, free: 3.141 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.272e-05/0.01591, allocations: 11.94 kB / 286.8 MB, free: 3.129 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002498/0.01841, allocations: 6.17 MB / 293 MB, free: 12.6 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.313e-06/0.01841, allocations: 0 / 293 MB, free: 12.6 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002855/0.01869, allocations: 382.5 kB / 293.4 MB, free: 12.19 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.437e-05/0.01876, allocations: 51.72 kB / 293.4 MB, free: 12.14 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.02e-05/0.01878, allocations: 15.98 kB / 293.4 MB, free: 12.12 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.392e-05/0.01887, allocations: 8 kB / 293.5 MB, free: 12.12 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.435e-05/0.01894, allocations: 32.03 kB / 293.5 MB, free: 12.09 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.018e-05/0.01896, allocations: 15.92 kB / 293.5 MB, free: 12.07 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001167/0.01907, allocations: 223 kB / 293.7 MB, free: 11.86 MB / 282.7 MB Notification: Performance of sort global known variables: time 8e-08/0.01907, allocations: 7.969 kB / 293.7 MB, free: 11.85 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003866/0.01946, allocations: 123.7 kB / 293.8 MB, free: 11.73 MB / 282.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 8.807e-05/0.01955, allocations: 103.2 kB / 293.9 MB, free: 11.62 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0004742/0.02002, allocations: 0.6523 MB / 294.6 MB, free: 10.91 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.02002, allocations: 4.125 kB / 294.6 MB, free: 10.91 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002645/0.02029, allocations: 0.6064 MB / 295.2 MB, free: 10.24 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000249/0.02054, allocations: 48.61 kB / 295.3 MB, free: 10.2 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009302/0.02147, allocations: 0.6024 MB / 295.9 MB, free: 9.559 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.849e-05/0.02153, allocations: 108.5 kB / 296 MB, free: 9.434 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 5.51e-05/0.02158, allocations: 22.3 kB / 296 MB, free: 9.414 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.008e-05/0.02162, allocations: 20.5 kB / 296 MB, free: 9.395 MB / 282.7 MB Notification: Performance of SimCode: time 6.12e-07/0.02162, allocations: 0 / 296 MB, free: 9.395 MB / 282.7 MB Notification: Performance of Templates: time 0.006662/0.02828, allocations: 5.005 MB / 301 MB, free: 4.457 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 -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.8718857259955257]