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.001272/0.001272, allocations: 107.1 kB / 20.44 MB, free: 1.344 MB / 14.72 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.001681/0.001681, allocations: 210.8 kB / 23.73 MB, free: 4.523 MB / 14.72 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.375/1.375, allocations: 230.6 MB / 257.5 MB, free: 7.793 MB / 206.1 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: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001442/0.001442, allocations: 55.86 kB / 377.7 MB, free: 2.945 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2585/0.2599, allocations: 53.36 MB / 431.1 MB, free: 6.621 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.004824/0.2647, allocations: 3.215 MB / 434.3 MB, free: 3.398 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001472/0.2662, allocations: 0.8063 MB / 435.1 MB, free: 2.586 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001604/0.2664, allocations: 11.94 kB / 435.1 MB, free: 2.574 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001903/0.2665, allocations: 67.28 kB / 435.2 MB, free: 2.508 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002443/0.2668, allocations: 138.8 kB / 435.3 MB, free: 2.371 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003525/0.2671, allocations: 135.8 kB / 435.5 MB, free: 2.238 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005383/0.2677, allocations: 0.5055 MB / 436 MB, free: 1.73 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002144/0.2679, allocations: 103.6 kB / 436.1 MB, free: 1.625 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002826/0.2682, allocations: 211.2 kB / 436.3 MB, free: 1.418 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002659/0.2684, allocations: 211 kB / 436.5 MB, free: 1.211 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.881e-05/0.2685, allocations: 40 kB / 436.5 MB, free: 1.172 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.787e-05/0.2686, allocations: 40 kB / 436.6 MB, free: 1.133 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.944e-05/0.2687, allocations: 95.62 kB / 436.6 MB, free: 1.039 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001738/0.2689, allocations: 179.2 kB / 436.8 MB, free: 0.8633 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005333/0.2694, allocations: 0.4979 MB / 437.3 MB, free: 372 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.009e-06/0.2694, allocations: 0 / 437.3 MB, free: 372 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.2694, allocations: 0 / 437.3 MB, free: 372 kB / 334.1 MB Notification: Performance of Transformations before backend: time 8.005e-06/0.2694, allocations: 0 / 437.3 MB, free: 372 kB / 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.001168/0.2706, allocations: 0.6645 MB / 438 MB, free: 15.67 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.288e-05/0.2706, allocations: 8.031 kB / 438 MB, free: 15.66 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.923e-05/0.2707, allocations: 74.66 kB / 438.1 MB, free: 15.58 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003392/0.271, allocations: 84.58 kB / 438.1 MB, free: 15.5 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004634/0.2715, allocations: 270.3 kB / 438.4 MB, free: 15.21 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.016e-05/0.2715, allocations: 21.03 kB / 438.4 MB, free: 15.19 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.251e-05/0.2716, allocations: 32.38 kB / 438.5 MB, free: 15.16 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006624/0.2722, allocations: 435.9 kB / 438.9 MB, free: 14.69 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.215e-05/0.2722, allocations: 0 / 438.9 MB, free: 14.69 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.48e-05/0.2723, allocations: 20 kB / 438.9 MB, free: 14.67 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.157e-05/0.2723, allocations: 8 kB / 438.9 MB, free: 14.66 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005301/0.2728, allocations: 266.4 kB / 439.2 MB, free: 14.41 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001908/0.2747, allocations: 1.294 MB / 440.5 MB, free: 13.02 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003988/0.2751, allocations: 196.1 kB / 440.7 MB, free: 12.82 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001987/0.2753, allocations: 101.2 kB / 440.8 MB, free: 12.72 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.97e-05/0.2753, allocations: 3.938 kB / 440.8 MB, free: 12.71 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.655e-05/0.2754, allocations: 42.42 kB / 440.8 MB, free: 12.66 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.252e-06/0.2754, allocations: 0 / 440.8 MB, free: 12.66 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.001398/0.2768, allocations: 483.2 kB / 441.3 MB, free: 12.18 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.959e-05/0.2768, allocations: 55.41 kB / 441.3 MB, free: 12.11 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003269/0.2771, allocations: 312.5 kB / 441.6 MB, free: 11.8 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.634e-05/0.2772, allocations: 29.7 kB / 441.7 MB, free: 11.76 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001647/0.2773, allocations: 216.4 kB / 441.9 MB, free: 11.55 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.227e-05/0.2774, allocations: 87.27 kB / 442 MB, free: 11.46 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.598e-05/0.2775, allocations: 49.69 kB / 442 MB, free: 11.41 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000151/0.2776, allocations: 342.8 kB / 442.3 MB, free: 11.06 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001915/0.2778, allocations: 83.89 kB / 442.4 MB, free: 10.98 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002087/0.278, allocations: 120.2 kB / 442.5 MB, free: 10.85 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003758/0.2784, allocations: 200.1 kB / 442.7 MB, free: 10.64 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.2784, allocations: 0 / 442.7 MB, free: 10.64 MB / 350.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007165/0.2791, allocations: 363.6 kB / 443.1 MB, free: 10.27 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.524e-05/0.2792, allocations: 4 kB / 443.1 MB, free: 10.26 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.649e-06/0.2792, allocations: 0 / 443.1 MB, free: 10.26 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004131/0.2796, allocations: 118.4 kB / 443.2 MB, free: 10.14 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000181/0.2798, allocations: 35.92 kB / 443.3 MB, free: 10.1 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003967/0.2837, allocations: 4.645 MB / 447.9 MB, free: 5.113 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002011/0.2839, allocations: 27.86 kB / 447.9 MB, free: 5.086 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.034e-05/0.2839, allocations: 8 kB / 447.9 MB, free: 5.078 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.000167/0.2841, allocations: 153.7 kB / 448.1 MB, free: 4.918 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.809e-05/0.2842, allocations: 35.77 kB / 448.1 MB, free: 4.883 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.801e-05/0.2842, allocations: 43.25 kB / 448.2 MB, free: 4.84 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.647e-06/0.2842, allocations: 4 kB / 448.2 MB, free: 4.836 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.134e-06/0.2842, allocations: 0 / 448.2 MB, free: 4.836 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.995e-06/0.2843, allocations: 0 / 448.2 MB, free: 4.836 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003806/0.2846, allocations: 316.5 kB / 448.5 MB, free: 4.484 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.2846, allocations: 0 / 448.5 MB, free: 4.484 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001129/0.2847, allocations: 19.98 kB / 448.5 MB, free: 4.465 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003384/0.2851, allocations: 114.5 kB / 448.6 MB, free: 4.344 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.774e-05/0.2851, allocations: 4 kB / 448.6 MB, free: 4.34 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003814/0.2889, allocations: 4.645 MB / 453.3 MB, free: 15.36 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.2889, allocations: 0 / 453.3 MB, free: 15.36 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006187/0.2895, allocations: 405.8 kB / 453.7 MB, free: 14.93 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001135/0.2897, allocations: 47.73 kB / 453.7 MB, free: 14.89 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.78e-05/0.2897, allocations: 4 kB / 453.7 MB, free: 14.88 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002252/0.2899, allocations: 19.98 kB / 453.7 MB, free: 14.86 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.167e-05/0.29, allocations: 31.88 kB / 453.8 MB, free: 14.83 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.769e-05/0.29, allocations: 8 kB / 453.8 MB, free: 14.82 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002235/0.2902, allocations: 223.1 kB / 454 MB, free: 14.61 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2902, allocations: 0 / 454 MB, free: 14.61 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006307/0.2909, allocations: 115.8 kB / 454.1 MB, free: 14.5 MB / 366.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.0008987/0.2918, allocations: 0.944 MB / 455 MB, free: 13.52 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.000881/0.2926, allocations: 0.5625 MB / 455.6 MB, free: 12.92 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.2926, allocations: 0 / 455.6 MB, free: 12.92 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005397/0.2932, allocations: 471.8 kB / 456.1 MB, free: 12.42 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004127/0.2936, allocations: 64.34 kB / 456.1 MB, free: 12.36 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00437/0.298, allocations: 3.156 MB / 459.3 MB, free: 9.082 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001907/0.2982, allocations: 190.8 kB / 459.5 MB, free: 8.879 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 9.783e-05/0.2983, allocations: 26.97 kB / 459.5 MB, free: 8.855 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001533/0.2984, allocations: 111.4 kB / 459.6 MB, free: 8.746 MB / 366.1 MB Notification: Performance of SimCode: time 6.71e-07/0.2984, allocations: 0 / 459.6 MB, free: 8.746 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04482/0.3432, allocations: 9.363 MB / 469 MB, free: 15.59 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.85/12.2, allocations: 14.39 kB / 469 MB, free: 15.58 MB / 382.1 MB " [Timeout remaining time 648] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes_fmu --startTime=0 --stopTime=1 --stepSize=0.000199521 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes.fmu > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/CharacteristicIdealDiodes/CharacteristicIdealDiodes.csv","/var/lib/jenkins1/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: 14.577190404001158]