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.001504/0.001504, allocations: 112.8 kB / 17.06 MB, free: 5.969 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.001808/0.001808, allocations: 200 kB / 18.01 MB, free: 5.047 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.335/1.335, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001141/0.001141, allocations: 47.92 kB / 350.8 MB, free: 3.746 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2606/0.2618, allocations: 49.44 MB / 400.2 MB, free: 8.41 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Resistor): time 0.003109/0.2649, allocations: 2.137 MB / 402.4 MB, free: 6.672 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008256/0.2658, allocations: 0.5416 MB / 402.9 MB, free: 6.125 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.023e-05/0.2659, allocations: 0 / 402.9 MB, free: 6.125 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001097/0.266, allocations: 19.8 kB / 402.9 MB, free: 6.105 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 7.794e-05/0.2661, allocations: 43.56 kB / 403 MB, free: 6.062 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001913/0.2663, allocations: 43.89 kB / 403 MB, free: 6.02 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001742/0.2665, allocations: 151.3 kB / 403.2 MB, free: 5.871 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001629/0.2666, allocations: 61.45 kB / 403.2 MB, free: 5.809 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001009/0.2667, allocations: 67.73 kB / 403.3 MB, free: 5.742 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000115/0.2669, allocations: 67.69 kB / 403.4 MB, free: 5.676 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.316e-05/0.2669, allocations: 15.94 kB / 403.4 MB, free: 5.66 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.27e-05/0.267, allocations: 19.98 kB / 403.4 MB, free: 5.641 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.94e-05/0.267, allocations: 27.92 kB / 403.4 MB, free: 5.613 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 6.901e-05/0.2671, allocations: 63.67 kB / 403.5 MB, free: 5.551 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002138/0.2673, allocations: 166.4 kB / 403.6 MB, free: 5.391 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.367e-06/0.2673, allocations: 0 / 403.6 MB, free: 5.391 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.522e-06/0.2673, allocations: 4 kB / 403.7 MB, free: 5.387 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.05e-06/0.2673, allocations: 0 / 403.7 MB, free: 5.387 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.0005493/0.2679, allocations: 447 kB / 404.1 MB, free: 4.898 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.606e-05/0.2679, allocations: 12.03 kB / 404.1 MB, free: 4.887 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.085e-05/0.268, allocations: 42.75 kB / 404.1 MB, free: 4.836 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.367e-05/0.268, allocations: 16.88 kB / 404.2 MB, free: 4.82 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002432/0.2683, allocations: 216 kB / 404.4 MB, free: 4.57 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.134e-05/0.2683, allocations: 8.609 kB / 404.4 MB, free: 4.562 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.909e-05/0.2684, allocations: 16.38 kB / 404.4 MB, free: 4.547 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002244/0.2686, allocations: 116.3 kB / 404.5 MB, free: 4.43 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.786e-06/0.2686, allocations: 3.938 kB / 404.5 MB, free: 4.426 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.521e-05/0.2686, allocations: 8 kB / 404.5 MB, free: 4.418 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.799e-06/0.2686, allocations: 0 / 404.5 MB, free: 4.418 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001778/0.2688, allocations: 84.64 kB / 404.6 MB, free: 4.336 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000781/0.2696, allocations: 0.6135 MB / 405.2 MB, free: 3.641 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002693/0.2699, allocations: 86.56 kB / 405.3 MB, free: 3.547 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.313e-05/0.27, allocations: 32.97 kB / 405.3 MB, free: 3.512 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.569e-05/0.27, allocations: 0 / 405.3 MB, free: 3.512 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.17e-05/0.27, allocations: 38.56 kB / 405.4 MB, free: 3.465 MB / 318.1 MB Notification: Performance of pre-optimization done (n=6): time 9.12e-07/0.27, allocations: 0 / 405.4 MB, free: 3.465 MB / 318.1 MB Notification: Performance of matching and sorting (n=6): time 0.0006548/0.2707, allocations: 255.4 kB / 405.6 MB, free: 3.188 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.608e-05/0.2707, allocations: 51.41 kB / 405.7 MB, free: 3.125 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001117/0.2708, allocations: 145.8 kB / 405.8 MB, free: 2.973 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.483e-05/0.2709, allocations: 25.7 kB / 405.8 MB, free: 2.941 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.56e-05/0.2709, allocations: 128.1 kB / 406 MB, free: 2.809 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.666e-05/0.271, allocations: 23.84 kB / 406 MB, free: 2.785 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.841e-05/0.271, allocations: 17.72 kB / 406 MB, free: 2.762 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001051/0.2711, allocations: 322.8 kB / 406.3 MB, free: 2.438 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.111e-05/0.2712, allocations: 27.98 kB / 406.3 MB, free: 2.41 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.953e-05/0.2713, allocations: 42.5 kB / 406.4 MB, free: 2.359 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001199/0.2714, allocations: 62.56 kB / 406.4 MB, free: 2.289 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.2714, allocations: 0 / 406.4 MB, free: 2.289 MB / 318.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002683/0.2717, allocations: 142.3 kB / 406.6 MB, free: 2.141 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.246e-05/0.2717, allocations: 4 kB / 406.6 MB, free: 2.137 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.598e-06/0.2717, allocations: 0 / 406.6 MB, free: 2.137 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001751/0.2719, allocations: 40.83 kB / 406.6 MB, free: 2.094 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.795e-05/0.2719, allocations: 4 kB / 406.6 MB, free: 2.09 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001509/0.2735, allocations: 1.708 MB / 408.3 MB, free: 248 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.467e-05/0.2735, allocations: 15.88 kB / 408.4 MB, free: 232 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.414e-06/0.2736, allocations: 0 / 408.4 MB, free: 232 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 8.511e-05/0.2736, allocations: 121.8 kB / 408.5 MB, free: 100 kB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.103e-05/0.2737, allocations: 11.89 kB / 408.5 MB, free: 88 kB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.399e-05/0.2737, allocations: 20.7 kB / 408.5 MB, free: 72 kB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.483e-06/0.2737, allocations: 48 / 408.5 MB, free: 72 kB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.943e-06/0.2737, allocations: 7.984 kB / 408.5 MB, free: 64 kB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.244e-06/0.2737, allocations: 0 / 408.5 MB, free: 64 kB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002104/0.274, allocations: 209.6 kB / 408.7 MB, free: 15.81 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.785e-06/0.274, allocations: 3.938 kB / 408.7 MB, free: 15.8 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.203e-05/0.274, allocations: 4 kB / 408.7 MB, free: 15.8 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001145/0.2741, allocations: 36.83 kB / 408.8 MB, free: 15.76 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.807e-06/0.2741, allocations: 7.938 kB / 408.8 MB, free: 15.75 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00124/0.2754, allocations: 1.674 MB / 410.4 MB, free: 13.94 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.2754, allocations: 8.094 kB / 410.5 MB, free: 13.93 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002732/0.2757, allocations: 212.2 kB / 410.7 MB, free: 13.7 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.029e-05/0.2758, allocations: 89.02 kB / 410.7 MB, free: 13.6 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.473e-05/0.2758, allocations: 7.984 kB / 410.8 MB, free: 13.59 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.211e-05/0.2759, allocations: 4 kB / 410.8 MB, free: 13.59 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.572e-05/0.2759, allocations: 7.984 kB / 410.8 MB, free: 13.58 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.36e-06/0.2759, allocations: 4 kB / 410.8 MB, free: 13.57 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.821e-05/0.276, allocations: 109.8 kB / 410.9 MB, free: 13.47 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.276, allocations: 0 / 410.9 MB, free: 13.47 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003341/0.2763, allocations: 39.95 kB / 410.9 MB, free: 13.43 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.0005345/0.2769, allocations: 0.7598 MB / 411.7 MB, free: 12.64 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003605/0.2773, allocations: 186.5 kB / 411.9 MB, free: 12.45 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.2773, allocations: 0 / 411.9 MB, free: 12.45 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001978/0.2775, allocations: 166.7 kB / 412 MB, free: 12.27 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002441/0.2777, allocations: 8.234 kB / 412 MB, free: 12.27 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001817/0.2796, allocations: 1.714 MB / 413.7 MB, free: 10.45 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002587/0.2798, allocations: 0.7118 MB / 414.5 MB, free: 9.707 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.512e-05/0.2799, allocations: 4.438 kB / 414.5 MB, free: 9.703 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.086e-05/0.2799, allocations: 31.42 kB / 414.5 MB, free: 9.672 MB / 334.1 MB Notification: Performance of SimCode: time 2.5e-07/0.2799, allocations: 3.938 kB / 414.5 MB, free: 9.668 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02859/0.3085, allocations: 3.021 MB / 417.5 MB, free: 6.758 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.82/11.13, allocations: 3.984 kB / 417.5 MB, free: 6.754 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