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.002466/0.002466, allocations: 95.61 kB / 20.96 MB, free: 3.461 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.00301/0.00301, allocations: 161.3 kB / 24.27 MB, free: 152 kB / 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.573/1.573, allocations: 177.1 MB / 204.6 MB, free: 5.621 MB / 186.7 MB " [Timeout remaining time 178] 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.293e-06/1.293e-06, allocations: 0 / 272.3 MB, free: 1.848 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.663e-05/2.792e-05, allocations: 2.312 kB / 272.3 MB, free: 1.844 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.005469/0.005497, allocations: 3.457 MB / 275.8 MB, free: 14.37 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001692/0.007189, allocations: 0.8295 MB / 276.6 MB, free: 13.54 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001907/0.00738, allocations: 7.938 kB / 276.6 MB, free: 13.53 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000215/0.007595, allocations: 67.36 kB / 276.7 MB, free: 13.46 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002898/0.007885, allocations: 154.6 kB / 276.8 MB, free: 13.31 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003903/0.008275, allocations: 131.7 kB / 277 MB, free: 13.18 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.000643/0.008918, allocations: 0.5287 MB / 277.5 MB, free: 12.65 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002131/0.009131, allocations: 99.66 kB / 277.6 MB, free: 12.55 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004764/0.009607, allocations: 295.2 kB / 277.9 MB, free: 12.26 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002588/0.009866, allocations: 151.6 kB / 278 MB, free: 12.11 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 7.686e-05/0.009943, allocations: 40 kB / 278.1 MB, free: 12.07 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000118/0.01006, allocations: 43.98 kB / 278.1 MB, free: 12.03 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001008/0.01016, allocations: 91.61 kB / 278.2 MB, free: 11.94 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002003/0.01036, allocations: 159.6 kB / 278.4 MB, free: 11.79 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006733/0.01104, allocations: 0.4984 MB / 278.9 MB, free: 11.29 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.01104, allocations: 0 / 278.9 MB, free: 11.29 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.292e-06/0.01104, allocations: 4 kB / 278.9 MB, free: 11.28 MB / 266.7 MB Notification: Performance of Transformations before backend: time 8.877e-06/0.01105, allocations: 3.938 kB / 278.9 MB, free: 11.28 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.001407/0.01246, allocations: 0.7797 MB / 279.6 MB, free: 10.46 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.524e-05/0.0125, allocations: 12.03 kB / 279.7 MB, free: 10.45 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000386/0.01289, allocations: 100.6 kB / 279.8 MB, free: 10.35 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004738/0.01336, allocations: 272.4 kB / 280 MB, free: 10.05 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.431e-05/0.0134, allocations: 29.03 kB / 280 MB, free: 10.03 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.939e-05/0.01346, allocations: 32.36 kB / 280.1 MB, free: 9.996 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007492/0.01421, allocations: 447.7 kB / 280.5 MB, free: 9.516 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.299e-05/0.01422, allocations: 192 / 280.5 MB, free: 9.516 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.468e-05/0.01425, allocations: 16.38 kB / 280.5 MB, free: 9.5 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.561e-05/0.01427, allocations: 11.94 kB / 280.5 MB, free: 9.488 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005739/0.01484, allocations: 250.4 kB / 280.8 MB, free: 9.246 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002385/0.01723, allocations: 1.499 MB / 282.3 MB, free: 7.656 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004726/0.0177, allocations: 211 kB / 282.5 MB, free: 7.438 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002268/0.01793, allocations: 96.05 kB / 282.6 MB, free: 7.34 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.164e-05/0.01796, allocations: 4 kB / 282.6 MB, free: 7.336 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.199e-05/0.018, allocations: 41.25 kB / 282.6 MB, free: 7.285 MB / 266.7 MB Notification: Performance of pre-optimization done (n=24): time 1.322e-06/0.018, allocations: 0 / 282.6 MB, free: 7.285 MB / 266.7 MB Notification: Performance of matching and sorting (n=24): time 0.001539/0.01954, allocations: 480.1 kB / 283.1 MB, free: 6.797 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.781e-05/0.01959, allocations: 59.41 kB / 283.2 MB, free: 6.727 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004537/0.02004, allocations: 398.2 kB / 283.5 MB, free: 6.316 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.416e-05/0.02008, allocations: 29.7 kB / 283.6 MB, free: 6.281 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00023/0.02031, allocations: 275.1 kB / 283.8 MB, free: 6.008 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.599e-05/0.02039, allocations: 83.36 kB / 283.9 MB, free: 5.926 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001127/0.02051, allocations: 63.25 kB / 284 MB, free: 5.855 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0003113/0.02082, allocations: 0.5196 MB / 284.5 MB, free: 5.324 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001934/0.02101, allocations: 75.97 kB / 284.6 MB, free: 5.25 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002481/0.02126, allocations: 134.3 kB / 284.7 MB, free: 5.098 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004163/0.02167, allocations: 206.3 kB / 284.9 MB, free: 4.875 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.364e-06/0.02168, allocations: 0 / 284.9 MB, free: 4.875 MB / 266.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007991/0.02248, allocations: 356.2 kB / 285.3 MB, free: 4.508 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.871e-05/0.02249, allocations: 8 kB / 285.3 MB, free: 4.5 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.402e-06/0.0225, allocations: 0 / 285.3 MB, free: 4.5 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004609/0.02296, allocations: 139 kB / 285.4 MB, free: 4.352 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001698/0.02313, allocations: 23.98 kB / 285.4 MB, free: 4.328 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00618/0.02931, allocations: 6.42 MB / 291.8 MB, free: 13.54 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002155/0.02953, allocations: 27.77 kB / 291.9 MB, free: 13.52 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.867e-05/0.02956, allocations: 15.98 kB / 291.9 MB, free: 13.5 MB / 282.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.0002291/0.02978, allocations: 192.5 kB / 292.1 MB, free: 13.3 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.614e-05/0.02987, allocations: 43.77 kB / 292.1 MB, free: 13.26 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.002e-05/0.02995, allocations: 39.23 kB / 292.2 MB, free: 13.22 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.814e-06/0.02995, allocations: 0 / 292.2 MB, free: 13.22 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.284e-06/0.02995, allocations: 0 / 292.2 MB, free: 13.22 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.576e-06/0.02996, allocations: 0 / 292.2 MB, free: 13.22 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004902/0.03045, allocations: 328.5 kB / 292.5 MB, free: 12.86 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/0.03045, allocations: 0 / 292.5 MB, free: 12.86 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001193/0.03057, allocations: 23.98 kB / 292.5 MB, free: 12.84 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003786/0.03095, allocations: 122.9 kB / 292.6 MB, free: 12.71 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.92e-05/0.03097, allocations: 4 kB / 292.6 MB, free: 12.7 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005825/0.03679, allocations: 6.414 MB / 299 MB, free: 5.93 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.03679, allocations: 0 / 299 MB, free: 5.93 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007453/0.03754, allocations: 462 kB / 299.5 MB, free: 5.449 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001274/0.03767, allocations: 47.91 kB / 299.5 MB, free: 5.402 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.819e-05/0.0377, allocations: 8 kB / 299.5 MB, free: 5.395 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002219/0.03793, allocations: 19.98 kB / 299.6 MB, free: 5.375 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001093/0.03804, allocations: 31.89 kB / 299.6 MB, free: 5.344 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.007e-05/0.03806, allocations: 7.938 kB / 299.6 MB, free: 5.336 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002913/0.03835, allocations: 271 kB / 299.9 MB, free: 5.074 MB / 282.7 MB Notification: Performance of sort global known variables: time 7e-08/0.03835, allocations: 0 / 299.9 MB, free: 5.074 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0006819/0.03903, allocations: 115.8 kB / 300 MB, free: 4.961 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 0.0001481/0.03918, allocations: 107.2 kB / 300.1 MB, free: 4.844 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001114/0.04029, allocations: 0.7309 MB / 300.8 MB, free: 4.059 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.04029, allocations: 0 / 300.8 MB, free: 4.059 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007546/0.04105, allocations: 0.6454 MB / 301.5 MB, free: 3.355 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004023/0.04145, allocations: 54.09 kB / 301.5 MB, free: 3.301 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001285/0.04274, allocations: 0.6393 MB / 302.2 MB, free: 2.637 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002221/0.04296, allocations: 190.5 kB / 302.3 MB, free: 2.43 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 9.855e-05/0.04306, allocations: 22.3 kB / 302.4 MB, free: 2.406 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.023e-05/0.04312, allocations: 24.5 kB / 302.4 MB, free: 2.383 MB / 282.7 MB Notification: Performance of SimCode: time 6.71e-07/0.04312, allocations: 0 / 302.4 MB, free: 2.383 MB / 282.7 MB Notification: Performance of Templates: time 0.1188/0.1619, allocations: 5.005 MB / 307.4 MB, free: 40.28 MB / 282.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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.693077152012847]