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.001811/0.001811, allocations: 112.2 kB / 20.43 MB, free: 1.449 MB / 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.001601/0.001601, allocations: 188.4 kB / 23.72 MB, free: 4.684 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.377/1.377, allocations: 225.6 MB / 252.5 MB, free: 13.02 MB / 206.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: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001743/0.001743, allocations: 47.92 kB / 370.5 MB, free: 9.844 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.249/0.2508, allocations: 52.18 MB / 422.6 MB, free: 14.6 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.0049/0.2557, allocations: 3.519 MB / 426.2 MB, free: 11.06 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001371/0.2571, allocations: 0.7604 MB / 426.9 MB, free: 10.3 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002289/0.2573, allocations: 7.938 kB / 426.9 MB, free: 10.29 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002124/0.2575, allocations: 67.3 kB / 427 MB, free: 10.22 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002686/0.2578, allocations: 126.8 kB / 427.1 MB, free: 10.1 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003351/0.2581, allocations: 119.8 kB / 427.2 MB, free: 9.98 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005645/0.2587, allocations: 0.4977 MB / 427.7 MB, free: 9.48 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002126/0.2589, allocations: 99.69 kB / 427.8 MB, free: 9.379 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002578/0.2591, allocations: 195.3 kB / 428 MB, free: 9.188 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002843/0.2594, allocations: 207 kB / 428.2 MB, free: 8.984 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.26e-05/0.2595, allocations: 40 kB / 428.3 MB, free: 8.945 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.615e-05/0.2596, allocations: 40 kB / 428.3 MB, free: 8.906 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.395e-05/0.2596, allocations: 95.67 kB / 428.4 MB, free: 8.812 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002097/0.2598, allocations: 218.8 kB / 428.6 MB, free: 8.598 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005571/0.2604, allocations: 0.4896 MB / 429.1 MB, free: 8.109 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.553e-05/0.2604, allocations: 7.984 kB / 429.1 MB, free: 8.102 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.2604, allocations: 0 / 429.1 MB, free: 8.102 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.328e-06/0.2604, allocations: 0 / 429.1 MB, free: 8.102 MB / 334.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.001167/0.2616, allocations: 0.649 MB / 429.8 MB, free: 7.422 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.179e-05/0.2616, allocations: 8.031 kB / 429.8 MB, free: 7.414 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001002/0.2617, allocations: 74.66 kB / 429.8 MB, free: 7.332 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.648e-05/0.2618, allocations: 56.59 kB / 429.9 MB, free: 7.277 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004553/0.2623, allocations: 262.2 kB / 430.1 MB, free: 6.996 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.853e-05/0.2623, allocations: 29.03 kB / 430.2 MB, free: 6.969 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.125e-05/0.2624, allocations: 28.38 kB / 430.2 MB, free: 6.941 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006247/0.263, allocations: 362.8 kB / 430.6 MB, free: 6.57 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.226e-05/0.263, allocations: 0 / 430.6 MB, free: 6.57 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.912e-05/0.263, allocations: 12 kB / 430.6 MB, free: 6.559 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.099e-05/0.263, allocations: 8 kB / 430.6 MB, free: 6.551 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005441/0.2636, allocations: 266.4 kB / 430.8 MB, free: 6.293 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002047/0.2656, allocations: 1.361 MB / 432.2 MB, free: 4.84 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004155/0.266, allocations: 202.5 kB / 432.4 MB, free: 4.633 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002115/0.2663, allocations: 96.83 kB / 432.5 MB, free: 4.535 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.449e-05/0.2663, allocations: 7.984 kB / 432.5 MB, free: 4.527 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.614e-05/0.2663, allocations: 34.56 kB / 432.5 MB, free: 4.484 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.303e-06/0.2663, allocations: 0 / 432.5 MB, free: 4.484 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.00144/0.2678, allocations: 483.3 kB / 433 MB, free: 4 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.781e-05/0.2678, allocations: 55.41 kB / 433.1 MB, free: 3.934 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003575/0.2682, allocations: 308.5 kB / 433.4 MB, free: 3.617 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.26e-05/0.2682, allocations: 33.7 kB / 433.4 MB, free: 3.578 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001624/0.2684, allocations: 212.5 kB / 433.6 MB, free: 3.367 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.874e-05/0.2684, allocations: 83.31 kB / 433.7 MB, free: 3.285 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.219e-05/0.2685, allocations: 45.7 kB / 433.7 MB, free: 3.234 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001662/0.2687, allocations: 338.8 kB / 434.1 MB, free: 2.895 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002034/0.2689, allocations: 75.95 kB / 434.1 MB, free: 2.82 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002267/0.2691, allocations: 128.2 kB / 434.3 MB, free: 2.68 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003911/0.2695, allocations: 200 kB / 434.4 MB, free: 2.469 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.559e-06/0.2695, allocations: 8 kB / 434.5 MB, free: 2.461 MB / 334.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007283/0.2702, allocations: 347.7 kB / 434.8 MB, free: 2.105 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.577e-05/0.2703, allocations: 4 kB / 434.8 MB, free: 2.102 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.65e-06/0.2703, allocations: 4 kB / 434.8 MB, free: 2.098 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003998/0.2707, allocations: 118.6 kB / 434.9 MB, free: 1.973 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001784/0.2708, allocations: 32.14 kB / 434.9 MB, free: 1.941 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004498/0.2753, allocations: 4.677 MB / 439.6 MB, free: 12.92 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000246/0.2756, allocations: 27.91 kB / 439.7 MB, free: 12.89 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.94e-05/0.2756, allocations: 15.88 kB / 439.7 MB, free: 12.88 MB / 350.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.0001978/0.2758, allocations: 149.8 kB / 439.8 MB, free: 12.72 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.593e-05/0.2759, allocations: 35.77 kB / 439.8 MB, free: 12.69 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.672e-05/0.2759, allocations: 39.27 kB / 439.9 MB, free: 12.65 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.071e-06/0.2759, allocations: 8.078 kB / 439.9 MB, free: 12.64 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.615e-06/0.2759, allocations: 0 / 439.9 MB, free: 12.64 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.41e-05/0.276, allocations: 3.984 kB / 439.9 MB, free: 12.64 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004421/0.2764, allocations: 344.4 kB / 440.2 MB, free: 12.26 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.805e-06/0.2764, allocations: 0 / 440.2 MB, free: 12.26 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001182/0.2765, allocations: 23.92 kB / 440.3 MB, free: 12.23 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000349/0.2769, allocations: 114.5 kB / 440.4 MB, free: 12.11 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.896e-05/0.2769, allocations: 7.984 kB / 440.4 MB, free: 12.11 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00416/0.281, allocations: 4.653 MB / 445 MB, free: 7.113 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.843e-06/0.281, allocations: 0 / 445 MB, free: 7.113 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006684/0.2817, allocations: 405.7 kB / 445.4 MB, free: 6.691 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001281/0.2818, allocations: 51.72 kB / 445.5 MB, free: 6.641 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.531e-05/0.2819, allocations: 4 kB / 445.5 MB, free: 6.637 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002209/0.2821, allocations: 15.98 kB / 445.5 MB, free: 6.621 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.919e-05/0.2822, allocations: 39.83 kB / 445.5 MB, free: 6.582 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.744e-05/0.2822, allocations: 7.984 kB / 445.5 MB, free: 6.574 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002403/0.2824, allocations: 215.1 kB / 445.8 MB, free: 6.367 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2824, allocations: 0 / 445.8 MB, free: 6.367 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000677/0.2831, allocations: 119.8 kB / 445.9 MB, free: 6.25 MB / 350.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.0009968/0.2841, allocations: 0.9321 MB / 446.8 MB, free: 5.285 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009883/0.2851, allocations: 0.566 MB / 447.4 MB, free: 4.68 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.2851, allocations: 0 / 447.4 MB, free: 4.68 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005701/0.2857, allocations: 471.8 kB / 447.8 MB, free: 4.18 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004419/0.2861, allocations: 65.62 kB / 447.9 MB, free: 4.117 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004641/0.2908, allocations: 3.114 MB / 451 MB, free: 0.8672 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004774/0.2912, allocations: 0.803 MB / 451.8 MB, free: 36 kB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001168/0.2914, allocations: 23.02 kB / 451.8 MB, free: 12 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001767/0.2915, allocations: 115.5 kB / 451.9 MB, free: 15.89 MB / 366.1 MB Notification: Performance of SimCode: time 9.32e-07/0.2915, allocations: 0 / 451.9 MB, free: 15.89 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05038/0.3419, allocations: 8.902 MB / 460.8 MB, free: 7.18 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.4/12.74, allocations: 0 / 460.8 MB, free: 7.18 MB / 366.1 MB " [Timeout remaining time 647] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes_fmu --startTime=0 --stopTime=1 --stepSize=0.000199521 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/CharacteristicIdealDiodes/CharacteristicIdealDiodes.csv","/var/lib/jenkins1/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: 15.222849023062736]