Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.Resistor,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_Resistor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.Resistor,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_Resistor",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.001327/0.001327, allocations: 108.8 kB / 17.06 MB, free: 6.016 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.001131/0.001131, allocations: 187.1 kB / 18 MB, free: 5.102 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.371/1.371, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001117/0.001117, allocations: 51.92 kB / 350.8 MB, free: 3.738 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3021/0.3032, allocations: 49.43 MB / 400.2 MB, free: 8.402 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Resistor): time 0.00379/0.307, allocations: 2.139 MB / 402.4 MB, free: 6.652 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001027/0.3081, allocations: 0.5416 MB / 402.9 MB, free: 6.105 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001309/0.3082, allocations: 4 kB / 402.9 MB, free: 6.102 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001471/0.3084, allocations: 19.78 kB / 402.9 MB, free: 6.082 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001177/0.3085, allocations: 43.58 kB / 403 MB, free: 6.039 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002262/0.3088, allocations: 43.89 kB / 403 MB, free: 5.996 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002118/0.309, allocations: 159.2 kB / 403.2 MB, free: 5.84 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001654/0.3092, allocations: 61.41 kB / 403.2 MB, free: 5.777 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001298/0.3093, allocations: 67.78 kB / 403.3 MB, free: 5.711 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001151/0.3094, allocations: 71.62 kB / 403.4 MB, free: 5.641 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.59e-05/0.3094, allocations: 12 kB / 403.4 MB, free: 5.629 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.835e-05/0.3095, allocations: 16 kB / 403.4 MB, free: 5.613 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.14e-05/0.3096, allocations: 27.92 kB / 403.4 MB, free: 5.586 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 7.475e-05/0.3096, allocations: 67.67 kB / 403.5 MB, free: 5.52 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002447/0.3099, allocations: 166.3 kB / 403.7 MB, free: 5.359 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.781e-06/0.3099, allocations: 0 / 403.7 MB, free: 5.359 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.3099, allocations: 0 / 403.7 MB, free: 5.359 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.183e-05/0.3099, allocations: 0 / 403.7 MB, free: 5.359 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: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0006381/0.3106, allocations: 447 kB / 404.1 MB, free: 4.871 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.945e-05/0.3106, allocations: 12.03 kB / 404.1 MB, free: 4.859 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.75e-05/0.3107, allocations: 46.73 kB / 404.1 MB, free: 4.805 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.511e-05/0.3108, allocations: 12.89 kB / 404.2 MB, free: 4.793 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002683/0.3111, allocations: 212.1 kB / 404.4 MB, free: 4.547 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.391e-05/0.3111, allocations: 8.609 kB / 404.4 MB, free: 4.539 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.158e-05/0.3111, allocations: 12.38 kB / 404.4 MB, free: 4.527 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000247/0.3114, allocations: 120.3 kB / 404.5 MB, free: 4.406 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.896e-06/0.3114, allocations: 4 kB / 404.5 MB, free: 4.402 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.66e-05/0.3114, allocations: 8 kB / 404.5 MB, free: 4.395 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.314e-06/0.3114, allocations: 0 / 404.5 MB, free: 4.395 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001735/0.3116, allocations: 80.66 kB / 404.6 MB, free: 4.316 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001018/0.3126, allocations: 0.6019 MB / 405.2 MB, free: 3.633 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003791/0.313, allocations: 102.5 kB / 405.3 MB, free: 3.523 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001133/0.3131, allocations: 28.97 kB / 405.3 MB, free: 3.492 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.566e-05/0.3132, allocations: 0 / 405.3 MB, free: 3.492 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.96e-05/0.3132, allocations: 34.56 kB / 405.4 MB, free: 3.449 MB / 318.1 MB Notification: Performance of pre-optimization done (n=6): time 1.333e-06/0.3132, allocations: 0 / 405.4 MB, free: 3.449 MB / 318.1 MB Notification: Performance of matching and sorting (n=6): time 0.0008976/0.3141, allocations: 255.4 kB / 405.6 MB, free: 3.172 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.808e-05/0.3142, allocations: 51.41 kB / 405.7 MB, free: 3.109 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000169/0.3143, allocations: 149.8 kB / 405.8 MB, free: 2.953 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.519e-05/0.3144, allocations: 25.7 kB / 405.8 MB, free: 2.922 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001166/0.3145, allocations: 128.1 kB / 406 MB, free: 2.789 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.734e-05/0.3146, allocations: 23.84 kB / 406 MB, free: 2.766 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.662e-05/0.3146, allocations: 17.72 kB / 406 MB, free: 2.742 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001394/0.3148, allocations: 322.8 kB / 406.3 MB, free: 2.418 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.295e-05/0.3149, allocations: 23.98 kB / 406.3 MB, free: 2.395 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001065/0.315, allocations: 54.44 kB / 406.4 MB, free: 2.332 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001938/0.3152, allocations: 58.56 kB / 406.4 MB, free: 2.266 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.484e-06/0.3152, allocations: 4 kB / 406.5 MB, free: 2.262 MB / 318.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003998/0.3156, allocations: 142.3 kB / 406.6 MB, free: 2.113 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.779e-05/0.3157, allocations: 4 kB / 406.6 MB, free: 2.109 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.352e-06/0.3157, allocations: 0 / 406.6 MB, free: 2.109 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002559/0.3159, allocations: 36.84 kB / 406.6 MB, free: 2.07 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.46e-05/0.316, allocations: 11.98 kB / 406.6 MB, free: 2.059 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002095/0.3181, allocations: 1.695 MB / 408.3 MB, free: 228 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001012/0.3183, allocations: 16 kB / 408.4 MB, free: 212 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.688e-06/0.3183, allocations: 0 / 408.4 MB, free: 212 kB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.000125/0.3184, allocations: 121.8 kB / 408.5 MB, free: 80 kB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.048e-05/0.3185, allocations: 11.89 kB / 408.5 MB, free: 68 kB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.11e-05/0.3185, allocations: 20.7 kB / 408.5 MB, free: 52 kB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.384e-06/0.3185, allocations: 0 / 408.5 MB, free: 52 kB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.693e-06/0.3185, allocations: 0 / 408.5 MB, free: 52 kB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.839e-06/0.3185, allocations: 4.031 kB / 408.5 MB, free: 48 kB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003198/0.3189, allocations: 209.6 kB / 408.7 MB, free: 15.79 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.519e-06/0.3189, allocations: 11.94 kB / 408.7 MB, free: 15.78 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.508e-05/0.3189, allocations: 0 / 408.7 MB, free: 15.78 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001655/0.3191, allocations: 40.83 kB / 408.8 MB, free: 15.74 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.17e-05/0.3191, allocations: 0 / 408.8 MB, free: 15.74 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001721/0.3209, allocations: 1.682 MB / 410.4 MB, free: 13.91 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.3209, allocations: 0 / 410.4 MB, free: 13.91 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003861/0.3213, allocations: 216.3 kB / 410.7 MB, free: 13.68 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.677e-05/0.3214, allocations: 97 kB / 410.8 MB, free: 13.57 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.705e-05/0.3214, allocations: 0 / 410.8 MB, free: 13.57 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001304/0.3215, allocations: 4 kB / 410.8 MB, free: 13.57 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.579e-05/0.3216, allocations: 7.984 kB / 410.8 MB, free: 13.56 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.762e-06/0.3216, allocations: 0 / 410.8 MB, free: 13.56 MB / 334.1 MB Notification: Performance of sorting global known variables: time 9.398e-05/0.3217, allocations: 113.8 kB / 410.9 MB, free: 13.45 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.3217, allocations: 4 kB / 410.9 MB, free: 13.45 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005081/0.3222, allocations: 39.94 kB / 410.9 MB, free: 13.41 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(1,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.00073/0.323, allocations: 0.7536 MB / 411.7 MB, free: 12.62 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000514/0.3235, allocations: 198.7 kB / 411.9 MB, free: 12.42 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.3235, allocations: 0 / 411.9 MB, free: 12.42 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002882/0.3238, allocations: 158.6 kB / 412 MB, free: 12.25 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003793/0.3242, allocations: 14.33 kB / 412 MB, free: 12.24 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002562/0.3268, allocations: 1.71 MB / 413.7 MB, free: 10.42 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003494/0.3272, allocations: 0.7118 MB / 414.5 MB, free: 9.684 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.532e-05/0.3272, allocations: 8.422 kB / 414.5 MB, free: 9.676 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.521e-05/0.3273, allocations: 27.44 kB / 414.5 MB, free: 9.648 MB / 334.1 MB Notification: Performance of SimCode: time 5.61e-07/0.3273, allocations: 0 / 414.5 MB, free: 9.648 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02967/0.357, allocations: 3.029 MB / 417.5 MB, free: 6.73 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.85/11.21, allocations: 3.125 kB / 417.5 MB, free: 6.73 MB / 334.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_Resistor.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/Resistor/Resistor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches