Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001373/0.001373, allocations: 122.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001499/0.001499, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.416/1.416, allocations: 227.4 MB / 246.9 MB, free: 10.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001974/0.001974, allocations: 63.91 kB / 358.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2772/0.2792, allocations: 50.54 MB / 408.8 MB, free: 1.535 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.004873/0.2841, allocations: 3.511 MB / 412.3 MB, free: 14.01 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001743/0.2859, allocations: 0.8529 MB / 413.1 MB, free: 13.15 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002309/0.2861, allocations: 8 kB / 413.1 MB, free: 13.14 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002186/0.2864, allocations: 67.28 kB / 413.2 MB, free: 13.08 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000266/0.2866, allocations: 130.8 kB / 413.3 MB, free: 12.95 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003833/0.287, allocations: 131.8 kB / 413.5 MB, free: 12.82 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005609/0.2876, allocations: 0.5055 MB / 414 MB, free: 12.31 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002545/0.2879, allocations: 139.2 kB / 414.1 MB, free: 12.17 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003012/0.2882, allocations: 191.3 kB / 414.3 MB, free: 11.98 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002718/0.2885, allocations: 207 kB / 414.5 MB, free: 11.78 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.082e-05/0.2885, allocations: 40 kB / 414.5 MB, free: 11.74 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001055/0.2886, allocations: 52 kB / 414.6 MB, free: 11.69 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.234e-05/0.2887, allocations: 87.67 kB / 414.7 MB, free: 11.61 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002139/0.289, allocations: 230.8 kB / 414.9 MB, free: 11.38 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005945/0.2896, allocations: 0.493 MB / 415.4 MB, free: 10.89 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.448e-06/0.2896, allocations: 0 / 415.4 MB, free: 10.89 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.2896, allocations: 0 / 415.4 MB, free: 10.89 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.358e-06/0.2896, allocations: 0 / 415.4 MB, free: 10.89 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.001189/0.2908, allocations: 0.7437 MB / 416.1 MB, free: 10.09 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.058e-05/0.2908, allocations: 8.031 kB / 416.1 MB, free: 10.09 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.528e-05/0.2909, allocations: 70.72 kB / 416.2 MB, free: 10.01 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000333/0.2913, allocations: 76.58 kB / 416.3 MB, free: 9.934 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005204/0.2918, allocations: 331.5 kB / 416.6 MB, free: 9.57 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.574e-05/0.2918, allocations: 25.02 kB / 416.6 MB, free: 9.547 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.632e-05/0.2919, allocations: 32.38 kB / 416.7 MB, free: 9.516 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006225/0.2925, allocations: 362.8 kB / 417 MB, free: 9.145 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.131e-05/0.2925, allocations: 0 / 417 MB, free: 9.145 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.705e-05/0.2926, allocations: 16 kB / 417 MB, free: 9.129 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.288e-05/0.2926, allocations: 8 kB / 417 MB, free: 9.121 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005535/0.2932, allocations: 270.4 kB / 417.3 MB, free: 8.859 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002051/0.2952, allocations: 1.415 MB / 418.7 MB, free: 7.344 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004235/0.2957, allocations: 222.4 kB / 418.9 MB, free: 7.117 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002089/0.2959, allocations: 109.2 kB / 419 MB, free: 7.008 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.484e-05/0.2959, allocations: 7.984 kB / 419.1 MB, free: 7 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.946e-05/0.296, allocations: 38.42 kB / 419.1 MB, free: 6.953 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.734e-06/0.296, allocations: 3.938 kB / 419.1 MB, free: 6.949 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.001542/0.2975, allocations: 0.7052 MB / 419.8 MB, free: 6.176 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.12e-05/0.2976, allocations: 51.41 kB / 419.8 MB, free: 6.113 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003432/0.2979, allocations: 308.6 kB / 420.1 MB, free: 5.797 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.076e-05/0.298, allocations: 33.7 kB / 420.2 MB, free: 5.758 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001501/0.2981, allocations: 216.4 kB / 420.4 MB, free: 5.543 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.55e-05/0.2982, allocations: 79.38 kB / 420.5 MB, free: 5.465 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.062e-05/0.2983, allocations: 49.66 kB / 420.5 MB, free: 5.41 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001506/0.2985, allocations: 342.8 kB / 420.9 MB, free: 5.066 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001938/0.2987, allocations: 79.97 kB / 420.9 MB, free: 4.988 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002208/0.2989, allocations: 124.2 kB / 421.1 MB, free: 4.852 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003994/0.2993, allocations: 208.1 kB / 421.3 MB, free: 4.633 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.454e-06/0.2993, allocations: 0 / 421.3 MB, free: 4.633 MB / 334.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007416/0.3001, allocations: 355.7 kB / 421.6 MB, free: 4.27 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.046e-05/0.3001, allocations: 8 kB / 421.6 MB, free: 4.262 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.422e-06/0.3001, allocations: 288 / 421.6 MB, free: 4.262 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004228/0.3005, allocations: 118.5 kB / 421.7 MB, free: 4.137 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001851/0.3007, allocations: 39.88 kB / 421.8 MB, free: 4.098 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004194/0.3049, allocations: 4.975 MB / 426.7 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002289/0.3052, allocations: 23.84 kB / 426.8 MB, free: 14.68 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.048e-05/0.3052, allocations: 11.98 kB / 426.8 MB, free: 14.67 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.0002093/0.3054, allocations: 145.8 kB / 426.9 MB, free: 14.52 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.797e-05/0.3055, allocations: 39.7 kB / 427 MB, free: 14.48 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.585e-05/0.3056, allocations: 43.23 kB / 427 MB, free: 14.43 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.358e-06/0.3056, allocations: 4 kB / 427 MB, free: 14.43 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.725e-06/0.3056, allocations: 0 / 427 MB, free: 14.43 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.366e-06/0.3056, allocations: 96 / 427 MB, free: 14.43 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004474/0.3061, allocations: 381.3 kB / 427.4 MB, free: 14.01 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.093e-06/0.3061, allocations: 128 / 427.4 MB, free: 14.01 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001253/0.3062, allocations: 27.98 kB / 427.4 MB, free: 13.98 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003345/0.3065, allocations: 110.5 kB / 427.5 MB, free: 13.86 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.642e-05/0.3066, allocations: 7.938 kB / 427.5 MB, free: 13.86 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004001/0.3106, allocations: 4.968 MB / 432.5 MB, free: 8.473 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.402e-06/0.3106, allocations: 0 / 432.5 MB, free: 8.473 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000649/0.3113, allocations: 405.6 kB / 432.9 MB, free: 8.051 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001475/0.3114, allocations: 136.8 kB / 433 MB, free: 7.898 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.122e-05/0.3115, allocations: 0 / 433 MB, free: 7.898 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00022/0.3117, allocations: 20.17 kB / 433 MB, free: 7.879 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.81e-05/0.3118, allocations: 35.89 kB / 433.1 MB, free: 7.844 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.794e-05/0.3118, allocations: 8 kB / 433.1 MB, free: 7.836 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002353/0.312, allocations: 219.1 kB / 433.3 MB, free: 7.621 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3121, allocations: 4 kB / 433.3 MB, free: 7.617 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006632/0.3127, allocations: 119.8 kB / 433.4 MB, free: 7.5 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.000954/0.3137, allocations: 0.9402 MB / 434.4 MB, free: 6.527 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009175/0.3146, allocations: 0.5661 MB / 434.9 MB, free: 5.922 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.326e-06/0.3146, allocations: 0 / 434.9 MB, free: 5.922 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005471/0.3152, allocations: 487.9 kB / 435.4 MB, free: 5.406 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004324/0.3156, allocations: 65.83 kB / 435.5 MB, free: 5.344 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004419/0.3201, allocations: 3.158 MB / 438.6 MB, free: 2.066 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004303/0.3205, allocations: 0.7914 MB / 439.4 MB, free: 1.25 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001181/0.3206, allocations: 31 kB / 439.4 MB, free: 1.223 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001512/0.3208, allocations: 107.4 kB / 439.5 MB, free: 1.117 MB / 350.1 MB Notification: Performance of SimCode: time 4.81e-07/0.3208, allocations: 3.938 kB / 439.6 MB, free: 1.113 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04156/0.3624, allocations: 8.711 MB / 448.3 MB, free: 8.594 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.93/12.29, allocations: 7.203 kB / 448.3 MB, free: 8.59 MB / 366.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes_res.csv","/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_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches