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.001253/0.001253, allocations: 122.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001381/0.001381, allocations: 202 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.383/1.383, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00138/0.00138, allocations: 71.88 kB / 358.2 MB, free: 13.39 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.283/0.2844, allocations: 50.54 MB / 408.8 MB, free: 1.523 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.004211/0.2886, allocations: 3.499 MB / 412.3 MB, free: 14.01 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001441/0.2901, allocations: 0.8452 MB / 413.1 MB, free: 13.16 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001933/0.2903, allocations: 4 kB / 413.1 MB, free: 13.16 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000191/0.2905, allocations: 75.28 kB / 413.2 MB, free: 13.08 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002641/0.2908, allocations: 134.8 kB / 413.3 MB, free: 12.95 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003744/0.2912, allocations: 127.8 kB / 413.5 MB, free: 12.82 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000493/0.2917, allocations: 0.5094 MB / 414 MB, free: 12.31 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002416/0.2919, allocations: 147.2 kB / 414.1 MB, free: 12.16 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002963/0.2923, allocations: 195.2 kB / 414.3 MB, free: 11.97 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002111/0.2925, allocations: 203.1 kB / 414.5 MB, free: 11.77 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.306e-05/0.2925, allocations: 40 kB / 414.5 MB, free: 11.73 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.16e-05/0.2926, allocations: 48 kB / 414.6 MB, free: 11.69 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.966e-05/0.2927, allocations: 91.61 kB / 414.7 MB, free: 11.6 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002003/0.2929, allocations: 222.9 kB / 414.9 MB, free: 11.38 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004759/0.2934, allocations: 0.4969 MB / 415.4 MB, free: 10.88 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.059e-06/0.2934, allocations: 4 kB / 415.4 MB, free: 10.88 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.2934, allocations: 4 kB / 415.4 MB, free: 10.88 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.156e-06/0.2934, allocations: 0 / 415.4 MB, free: 10.88 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.00108/0.2945, allocations: 0.7359 MB / 416.1 MB, free: 10.09 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.054e-05/0.2946, allocations: 8.031 kB / 416.1 MB, free: 10.08 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.147e-05/0.2946, allocations: 74.66 kB / 416.2 MB, free: 10 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003319/0.295, allocations: 80.52 kB / 416.3 MB, free: 9.922 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004754/0.2955, allocations: 331.5 kB / 416.6 MB, free: 9.559 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.05e-05/0.2955, allocations: 21.03 kB / 416.6 MB, free: 9.539 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.177e-05/0.2956, allocations: 36.38 kB / 416.7 MB, free: 9.504 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006078/0.2962, allocations: 350.9 kB / 417 MB, free: 9.145 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.195e-05/0.2962, allocations: 0 / 417 MB, free: 9.145 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.275e-05/0.2962, allocations: 16 kB / 417 MB, free: 9.129 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.959e-06/0.2963, allocations: 8 kB / 417 MB, free: 9.121 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005136/0.2968, allocations: 274.4 kB / 417.3 MB, free: 8.855 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001901/0.2987, allocations: 1.419 MB / 418.7 MB, free: 7.336 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004192/0.2991, allocations: 222.4 kB / 418.9 MB, free: 7.109 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002113/0.2993, allocations: 109.2 kB / 419.1 MB, free: 7 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.317e-05/0.2994, allocations: 7.938 kB / 419.1 MB, free: 6.992 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.723e-05/0.2994, allocations: 38.42 kB / 419.1 MB, free: 6.945 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.573e-06/0.2994, allocations: 0 / 419.1 MB, free: 6.945 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.001551/0.301, allocations: 0.7052 MB / 419.8 MB, free: 6.172 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.054e-05/0.301, allocations: 59.34 kB / 419.9 MB, free: 6.102 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000337/0.3014, allocations: 308.6 kB / 420.2 MB, free: 5.785 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.036e-05/0.3014, allocations: 29.7 kB / 420.2 MB, free: 5.75 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001434/0.3016, allocations: 220.4 kB / 420.4 MB, free: 5.531 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.983e-05/0.3016, allocations: 75.38 kB / 420.5 MB, free: 5.457 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.342e-05/0.3017, allocations: 49.66 kB / 420.5 MB, free: 5.402 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001129/0.3019, allocations: 342.8 kB / 420.9 MB, free: 5.059 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001867/0.302, allocations: 83.97 kB / 420.9 MB, free: 4.977 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002061/0.3023, allocations: 120.2 kB / 421.1 MB, free: 4.844 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003852/0.3027, allocations: 208.1 kB / 421.3 MB, free: 4.625 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.887e-06/0.3027, allocations: 0 / 421.3 MB, free: 4.625 MB / 334.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007285/0.3034, allocations: 351.8 kB / 421.6 MB, free: 4.266 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.167e-05/0.3034, allocations: 8 kB / 421.6 MB, free: 4.258 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.915e-06/0.3034, allocations: 3.938 kB / 421.6 MB, free: 4.254 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000451/0.3039, allocations: 114.5 kB / 421.7 MB, free: 4.133 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001932/0.3041, allocations: 39.91 kB / 421.8 MB, free: 4.094 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003938/0.3081, allocations: 4.971 MB / 426.7 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002459/0.3083, allocations: 27.94 kB / 426.8 MB, free: 14.68 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.541e-05/0.3084, allocations: 8 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.0002003/0.3086, allocations: 165.6 kB / 426.9 MB, free: 14.5 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.357e-05/0.3087, allocations: 35.77 kB / 427 MB, free: 14.46 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.093e-05/0.3087, allocations: 39.17 kB / 427 MB, free: 14.42 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.036e-06/0.3087, allocations: 4 kB / 427 MB, free: 14.42 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.846e-06/0.3087, allocations: 0 / 427 MB, free: 14.42 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.817e-06/0.3087, allocations: 0 / 427 MB, free: 14.42 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005255/0.3093, allocations: 385.3 kB / 427.4 MB, free: 13.99 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.649e-06/0.3093, allocations: 0 / 427.4 MB, free: 13.99 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001262/0.3094, allocations: 19.98 kB / 427.4 MB, free: 13.97 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003847/0.3098, allocations: 114.6 kB / 427.5 MB, free: 13.85 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.408e-05/0.3099, allocations: 8 kB / 427.5 MB, free: 13.84 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004119/0.314, allocations: 4.972 MB / 432.5 MB, free: 8.457 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.408e-06/0.314, allocations: 0 / 432.5 MB, free: 8.457 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006288/0.3147, allocations: 405.6 kB / 432.9 MB, free: 8.035 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000163/0.3148, allocations: 132.8 kB / 433 MB, free: 7.887 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.283e-05/0.3149, allocations: 4 kB / 433 MB, free: 7.883 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002353/0.3151, allocations: 19.98 kB / 433.1 MB, free: 7.863 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.406e-05/0.3152, allocations: 35.89 kB / 433.1 MB, free: 7.828 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.516e-05/0.3152, allocations: 4 kB / 433.1 MB, free: 7.824 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002212/0.3155, allocations: 219.1 kB / 433.3 MB, free: 7.609 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3155, allocations: 0 / 433.3 MB, free: 7.609 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006798/0.3162, allocations: 119.8 kB / 433.4 MB, free: 7.492 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.000928/0.3171, allocations: 0.9402 MB / 434.4 MB, free: 6.52 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009675/0.3181, allocations: 0.5738 MB / 434.9 MB, free: 5.906 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.597e-06/0.3181, allocations: 0 / 434.9 MB, free: 5.906 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005357/0.3186, allocations: 483.9 kB / 435.4 MB, free: 5.395 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004533/0.3191, allocations: 61.97 kB / 435.5 MB, free: 5.336 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004405/0.3235, allocations: 3.159 MB / 438.6 MB, free: 2.059 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000336/0.3239, allocations: 0.7953 MB / 439.4 MB, free: 1.238 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001224/0.324, allocations: 34.89 kB / 439.5 MB, free: 1.207 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001389/0.3242, allocations: 107.4 kB / 439.6 MB, free: 1.102 MB / 350.1 MB Notification: Performance of SimCode: time 4.9e-07/0.3242, allocations: 0 / 439.6 MB, free: 1.102 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03468/0.3589, allocations: 8.719 MB / 448.3 MB, free: 8.574 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.41/11.77, allocations: 3.5 kB / 448.3 MB, free: 8.574 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.0.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