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.001865/0.001865, allocations: 115.8 kB / 20.43 MB, free: 1.457 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.002053/0.002053, allocations: 214.1 kB / 23.75 MB, free: 4.668 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.477/1.477, allocations: 230.6 MB / 257.5 MB, free: 8.008 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.002438/0.002438, allocations: 47.92 kB / 377.8 MB, free: 3.16 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2986/0.301, allocations: 53.36 MB / 431.1 MB, free: 6.895 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.005297/0.3063, allocations: 3.544 MB / 434.7 MB, free: 3.336 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001642/0.308, allocations: 0.8578 MB / 435.5 MB, free: 2.473 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001925/0.3082, allocations: 8 kB / 435.6 MB, free: 2.465 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001875/0.3083, allocations: 63.3 kB / 435.6 MB, free: 2.402 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000247/0.3086, allocations: 138.8 kB / 435.8 MB, free: 2.266 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003743/0.309, allocations: 139.8 kB / 435.9 MB, free: 2.129 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005478/0.3095, allocations: 0.5055 MB / 436.4 MB, free: 1.621 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002264/0.3097, allocations: 95.7 kB / 436.5 MB, free: 1.523 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002932/0.31, allocations: 195.2 kB / 436.7 MB, free: 1.332 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002743/0.3103, allocations: 215.1 kB / 436.9 MB, free: 1.121 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.594e-05/0.3104, allocations: 36 kB / 436.9 MB, free: 1.086 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.83e-05/0.3105, allocations: 51.92 kB / 437 MB, free: 1.035 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.713e-05/0.3105, allocations: 91.62 kB / 437.1 MB, free: 0.9453 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001966/0.3107, allocations: 218.9 kB / 437.3 MB, free: 0.7305 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005441/0.3113, allocations: 0.4973 MB / 437.8 MB, free: 240 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.895e-06/0.3113, allocations: 4 kB / 437.8 MB, free: 236 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.3113, allocations: 3.938 kB / 437.8 MB, free: 232 kB / 334.1 MB Notification: Performance of Transformations before backend: time 1.3e-05/0.3113, allocations: 0 / 437.8 MB, free: 232 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.00117/0.3125, allocations: 0.6611 MB / 438.4 MB, free: 15.53 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.221e-05/0.3125, allocations: 8.031 kB / 438.5 MB, free: 15.52 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.696e-05/0.3126, allocations: 70.72 kB / 438.5 MB, free: 15.45 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003329/0.3129, allocations: 84.56 kB / 438.6 MB, free: 15.36 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005197/0.3134, allocations: 270.3 kB / 438.9 MB, free: 15.07 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.932e-05/0.3135, allocations: 25.03 kB / 438.9 MB, free: 15.05 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.352e-05/0.3135, allocations: 28.38 kB / 438.9 MB, free: 15.02 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006386/0.3142, allocations: 358.5 kB / 439.3 MB, free: 14.65 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.438e-05/0.3142, allocations: 7.938 kB / 439.3 MB, free: 14.64 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.308e-05/0.3142, allocations: 12 kB / 439.3 MB, free: 14.63 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.142e-05/0.3142, allocations: 8 kB / 439.3 MB, free: 14.62 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005445/0.3148, allocations: 270.4 kB / 439.6 MB, free: 14.36 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001971/0.3168, allocations: 1.369 MB / 440.9 MB, free: 12.9 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004138/0.3172, allocations: 204 kB / 441.1 MB, free: 12.7 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002015/0.3174, allocations: 101.2 kB / 441.2 MB, free: 12.59 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.596e-05/0.3174, allocations: 4 kB / 441.2 MB, free: 12.59 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.843e-05/0.3175, allocations: 46.36 kB / 441.3 MB, free: 12.54 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.353e-06/0.3175, allocations: 0 / 441.3 MB, free: 12.54 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.001389/0.3188, allocations: 479.3 kB / 441.7 MB, free: 12.05 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.207e-05/0.3189, allocations: 59.34 kB / 441.8 MB, free: 11.98 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003218/0.3192, allocations: 312.5 kB / 442.1 MB, free: 11.67 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.137e-05/0.3192, allocations: 29.7 kB / 442.1 MB, free: 11.63 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001453/0.3194, allocations: 212.5 kB / 442.3 MB, free: 11.42 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.088e-05/0.3195, allocations: 83.33 kB / 442.4 MB, free: 11.34 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.544e-05/0.3195, allocations: 57.64 kB / 442.5 MB, free: 11.28 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000152/0.3197, allocations: 338.8 kB / 442.8 MB, free: 10.94 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001898/0.3199, allocations: 79.95 kB / 442.9 MB, free: 10.86 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002077/0.3201, allocations: 120.2 kB / 443 MB, free: 10.73 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003837/0.3205, allocations: 204.1 kB / 443.2 MB, free: 10.51 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.3205, allocations: 0 / 443.2 MB, free: 10.51 MB / 350.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.000698/0.3212, allocations: 359.9 kB / 443.6 MB, free: 10.14 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.643e-05/0.3212, allocations: 4 kB / 443.6 MB, free: 10.14 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.646e-06/0.3212, allocations: 4.094 kB / 443.6 MB, free: 10.14 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004122/0.3216, allocations: 118.4 kB / 443.7 MB, free: 10.01 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001676/0.3218, allocations: 27.98 kB / 443.7 MB, free: 9.984 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003999/0.3258, allocations: 4.668 MB / 448.4 MB, free: 4.973 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002055/0.326, allocations: 31.88 kB / 448.4 MB, free: 4.941 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.937e-05/0.326, allocations: 7.984 kB / 448.4 MB, free: 4.934 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.0001779/0.3262, allocations: 149.7 kB / 448.6 MB, free: 4.777 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.317e-05/0.3262, allocations: 31.81 kB / 448.6 MB, free: 4.746 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.5e-05/0.3263, allocations: 39.27 kB / 448.6 MB, free: 4.707 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.727e-06/0.3263, allocations: 12 kB / 448.6 MB, free: 4.695 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.364e-06/0.3263, allocations: 0 / 448.6 MB, free: 4.695 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.376e-06/0.3263, allocations: 0 / 448.6 MB, free: 4.695 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004276/0.3267, allocations: 352.3 kB / 449 MB, free: 4.309 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.3267, allocations: 0 / 449 MB, free: 4.309 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001123/0.3269, allocations: 23.98 kB / 449 MB, free: 4.285 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003126/0.3272, allocations: 114.4 kB / 449.1 MB, free: 4.164 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.925e-05/0.3272, allocations: 7.984 kB / 449.1 MB, free: 4.156 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003815/0.331, allocations: 4.665 MB / 453.8 MB, free: 15.15 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.53e-06/0.331, allocations: 3.938 kB / 453.8 MB, free: 15.15 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006187/0.3316, allocations: 393.7 kB / 454.2 MB, free: 14.74 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001184/0.3317, allocations: 51.72 kB / 454.2 MB, free: 14.69 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.738e-05/0.3318, allocations: 8.062 kB / 454.2 MB, free: 14.68 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002218/0.332, allocations: 19.98 kB / 454.3 MB, free: 14.66 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.736e-05/0.3321, allocations: 27.89 kB / 454.3 MB, free: 14.63 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.661e-05/0.3321, allocations: 8 kB / 454.3 MB, free: 14.62 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002417/0.3324, allocations: 223 kB / 454.5 MB, free: 14.41 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3324, allocations: 0 / 454.5 MB, free: 14.41 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006766/0.333, allocations: 123.7 kB / 454.6 MB, free: 14.29 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.0009613/0.334, allocations: 0.9322 MB / 455.6 MB, free: 13.32 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0009785/0.335, allocations: 0.5621 MB / 456.1 MB, free: 12.72 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.335, allocations: 0 / 456.1 MB, free: 12.72 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005515/0.3355, allocations: 468 kB / 456.6 MB, free: 12.23 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004482/0.336, allocations: 71.73 kB / 456.7 MB, free: 12.16 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004445/0.3404, allocations: 3.161 MB / 459.8 MB, free: 8.883 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004188/0.3408, allocations: 0.7992 MB / 460.6 MB, free: 8.059 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001071/0.3409, allocations: 26.92 kB / 460.6 MB, free: 8.035 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001837/0.3411, allocations: 111.4 kB / 460.8 MB, free: 7.926 MB / 366.1 MB Notification: Performance of SimCode: time 6.01e-07/0.3411, allocations: 0 / 460.8 MB, free: 7.926 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04329/0.3844, allocations: 9.005 MB / 469.8 MB, free: 15.11 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.76/13.14, allocations: 8.047 kB / 469.8 MB, free: 15.11 MB / 382.1 MB " [Timeout remaining time 647] (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: 15.743483057012782]