Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001999/0.001998, allocations: 110.6 kB / 17.73 MB, free: 5.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002518/0.002518, allocations: 190.9 kB / 18.67 MB, free: 4.387 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.655/1.655, allocations: 205.1 MB / 224.5 MB, free: 12.2 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001729/0.001729, allocations: 51.92 kB / 328 MB, free: 3.785 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1209/0.1227, allocations: 46.62 MB / 374.7 MB, free: 5.059 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.005891/0.1286, allocations: 3.438 MB / 378.1 MB, free: 1.602 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001991/0.1307, allocations: 0.7952 MB / 378.9 MB, free: 0.7969 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002615/0.1309, allocations: 8 kB / 378.9 MB, free: 0.7891 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002212/0.1312, allocations: 63.3 kB / 379 MB, free: 0.7266 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002747/0.1315, allocations: 138.8 kB / 379.1 MB, free: 0.5898 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003339/0.1318, allocations: 103.9 kB / 379.2 MB, free: 500 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.212/0.3438, allocations: 0.5137 MB / 379.7 MB, free: 9.25 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004333/0.3443, allocations: 127 kB / 379.8 MB, free: 9.23 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004956/0.3448, allocations: 184.9 kB / 380 MB, free: 9.23 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003279/0.3452, allocations: 213.5 kB / 380.2 MB, free: 9.184 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.976e-05/0.3452, allocations: 39.09 kB / 380.3 MB, free: 9.184 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.662e-05/0.3453, allocations: 41.81 kB / 380.3 MB, free: 9.184 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.06e-05/0.3454, allocations: 92.69 kB / 380.4 MB, free: 9.168 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002174/0.3457, allocations: 224.5 kB / 380.6 MB, free: 9.102 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006465/0.3463, allocations: 492.7 kB / 381.1 MB, free: 9.023 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.3463, allocations: 0 / 381.1 MB, free: 9.023 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.186e-06/0.3463, allocations: 0.5625 kB / 381.1 MB, free: 9.023 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.706e-05/0.3464, allocations: 0 / 381.1 MB, free: 9.023 MB / 318.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.001101/0.3475, allocations: 0.7296 MB / 381.8 MB, free: 8.512 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.849e-05/0.3475, allocations: 9.625 kB / 381.8 MB, free: 8.512 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.903e-05/0.3476, allocations: 70.06 kB / 381.9 MB, free: 8.473 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001029/0.3477, allocations: 50.5 kB / 381.9 MB, free: 8.449 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004751/0.3482, allocations: 315.5 kB / 382.3 MB, free: 8.211 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.835e-05/0.3482, allocations: 25 kB / 382.3 MB, free: 8.211 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.68e-05/0.3483, allocations: 35 kB / 382.3 MB, free: 8.207 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007014/0.349, allocations: 360.6 kB / 382.7 MB, free: 8.129 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.586e-05/0.349, allocations: 1.141 kB / 382.7 MB, free: 8.129 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.847e-05/0.3491, allocations: 13.88 kB / 382.7 MB, free: 8.129 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.634e-05/0.3491, allocations: 11.88 kB / 382.7 MB, free: 8.129 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006191/0.3497, allocations: 271.3 kB / 383 MB, free: 8.125 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001996/0.3517, allocations: 1.419 MB / 384.4 MB, free: 7.34 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004995/0.3522, allocations: 220.2 kB / 384.6 MB, free: 7.316 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000246/0.3525, allocations: 108.9 kB / 384.7 MB, free: 7.305 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.16e-05/0.3525, allocations: 2.75 kB / 384.7 MB, free: 7.305 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.803e-05/0.3526, allocations: 39.44 kB / 384.7 MB, free: 7.266 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 1.453e-06/0.3526, allocations: 0 / 384.7 MB, free: 7.266 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.001666/0.3543, allocations: 0.7012 MB / 385.4 MB, free: 6.895 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.843e-05/0.3543, allocations: 53.8 kB / 385.5 MB, free: 6.832 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003273/0.3546, allocations: 305.9 kB / 385.8 MB, free: 6.719 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.335e-05/0.3547, allocations: 30.86 kB / 385.8 MB, free: 6.684 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001422/0.3548, allocations: 214.1 kB / 386 MB, free: 6.508 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.446e-05/0.3549, allocations: 79.56 kB / 386.1 MB, free: 6.449 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.195e-05/0.355, allocations: 53.69 kB / 386.2 MB, free: 6.41 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.345e-05/0.3551, allocations: 339.7 kB / 386.5 MB, free: 6.086 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002007/0.3553, allocations: 81.8 kB / 386.6 MB, free: 6.059 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002077/0.3555, allocations: 117.8 kB / 386.7 MB, free: 5.992 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004117/0.3559, allocations: 203 kB / 386.9 MB, free: 5.883 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.895e-06/0.3559, allocations: 1.156 kB / 386.9 MB, free: 5.883 MB / 318.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007163/0.3566, allocations: 359.3 kB / 387.2 MB, free: 5.723 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.022e-05/0.3567, allocations: 5.625 kB / 387.2 MB, free: 5.723 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.704e-06/0.3567, allocations: 1.25 kB / 387.2 MB, free: 5.723 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004635/0.3572, allocations: 116 kB / 387.4 MB, free: 5.672 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001726/0.3573, allocations: 30.62 kB / 387.4 MB, free: 5.672 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002936/0.3603, allocations: 4.986 MB / 392.4 MB, free: 0.8281 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002634/0.3606, allocations: 27.69 kB / 392.4 MB, free: 0.8125 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.84e-05/0.3606, allocations: 10.19 kB / 392.4 MB, free: 0.8086 MB / 318.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.0002253/0.3608, allocations: 143.3 kB / 392.5 MB, free: 0.6758 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001044/0.361, allocations: 40.16 kB / 392.6 MB, free: 0.6523 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.413e-05/0.3611, allocations: 39.28 kB / 392.6 MB, free: 0.625 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.02e-06/0.3611, allocations: 7.688 kB / 392.6 MB, free: 0.6211 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.15e-06/0.3611, allocations: 0.7031 kB / 392.6 MB, free: 0.6211 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.524e-06/0.3611, allocations: 0.7031 kB / 392.6 MB, free: 0.6211 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005311/0.3616, allocations: 382 kB / 393 MB, free: 360 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.395e-06/0.3617, allocations: 1.156 kB / 393 MB, free: 360 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001281/0.3618, allocations: 21.03 kB / 393 MB, free: 360 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003608/0.3622, allocations: 112.4 kB / 393.1 MB, free: 308 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.02e-05/0.3622, allocations: 9.891 kB / 393.2 MB, free: 300 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004828/0.367, allocations: 4.967 MB / 398.1 MB, free: 11.48 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.367, allocations: 1.062 kB / 398.1 MB, free: 11.48 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007849/0.3678, allocations: 407.3 kB / 398.5 MB, free: 11.22 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001592/0.368, allocations: 130.5 kB / 398.6 MB, free: 11.09 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.665e-05/0.3681, allocations: 5.031 kB / 398.6 MB, free: 11.09 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002335/0.3683, allocations: 24.53 kB / 398.7 MB, free: 11.09 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001011/0.3684, allocations: 23.14 kB / 398.7 MB, free: 11.08 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.343e-05/0.3684, allocations: 14.22 kB / 398.7 MB, free: 11.07 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002683/0.3687, allocations: 216.4 kB / 398.9 MB, free: 10.95 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3687, allocations: 1.25 kB / 398.9 MB, free: 10.95 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0007203/0.3694, allocations: 114.9 kB / 399 MB, free: 10.93 MB / 334.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.001021/0.3705, allocations: 0.9482 MB / 400 MB, free: 10.14 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001062/0.3716, allocations: 0.5705 MB / 400.6 MB, free: 9.719 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.3716, allocations: 0 / 400.6 MB, free: 9.719 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006208/0.3722, allocations: 484.8 kB / 401 MB, free: 9.324 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004611/0.3727, allocations: 63.67 kB / 401.1 MB, free: 9.297 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004899/0.3776, allocations: 3.139 MB / 404.2 MB, free: 7.27 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004905/0.3781, allocations: 0.7926 MB / 405 MB, free: 6.57 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001409/0.3782, allocations: 24.91 kB / 405 MB, free: 6.562 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001631/0.3784, allocations: 109.9 kB / 405.2 MB, free: 6.477 MB / 334.1 MB Notification: Performance of SimCode: time 1.312e-06/0.3784, allocations: 0 / 405.2 MB, free: 6.477 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04278/0.4212, allocations: 8.637 MB / 413.8 MB, free: 3.387 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13/13.42, allocations: 6.219 kB / 413.8 MB, free: 3.383 MB / 334.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/CharacteristicIdealDiodes/CharacteristicIdealDiodes.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches