Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.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.Resistor,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_Resistor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.Resistor,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_Resistor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001404/0.001404, allocations: 122.8 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001682/0.001682, allocations: 202 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.371/1.371, allocations: 227.4 MB / 246.9 MB, free: 10.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001203/0.001203, allocations: 67.84 kB / 358.2 MB, free: 13.44 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2576/0.2588, allocations: 50.55 MB / 408.8 MB, free: 1.562 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Resistor): time 0.002956/0.2618, allocations: 2.15 MB / 410.9 MB, free: 15.41 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009448/0.2627, allocations: 0.6195 MB / 411.5 MB, free: 14.78 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.645e-05/0.2628, allocations: 0 / 411.5 MB, free: 14.78 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001115/0.263, allocations: 19.8 kB / 411.6 MB, free: 14.76 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 7.849e-05/0.2631, allocations: 43.56 kB / 411.6 MB, free: 14.71 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002153/0.2633, allocations: 51.88 kB / 411.6 MB, free: 14.66 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001679/0.2635, allocations: 163.2 kB / 411.8 MB, free: 14.5 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001451/0.2636, allocations: 57.45 kB / 411.9 MB, free: 14.44 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001402/0.2638, allocations: 71.77 kB / 411.9 MB, free: 14.37 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.987e-05/0.2639, allocations: 63.7 kB / 412 MB, free: 14.31 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.173e-05/0.2639, allocations: 12 kB / 412 MB, free: 14.3 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.948e-05/0.264, allocations: 24 kB / 412 MB, free: 14.27 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.813e-05/0.264, allocations: 31.84 kB / 412.1 MB, free: 14.24 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.689e-05/0.2641, allocations: 71.67 kB / 412.1 MB, free: 14.17 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001995/0.2643, allocations: 165.1 kB / 412.3 MB, free: 14.01 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.2643, allocations: 4 kB / 412.3 MB, free: 14.01 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.946e-06/0.2643, allocations: 0 / 412.3 MB, free: 14.01 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.182e-06/0.2643, allocations: 7.922 kB / 412.3 MB, free: 14 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: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0005454/0.2649, allocations: 439.2 kB / 412.7 MB, free: 13.52 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.27e-05/0.2649, allocations: 8.031 kB / 412.7 MB, free: 13.51 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.915e-05/0.265, allocations: 46.73 kB / 412.8 MB, free: 13.46 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001689/0.2651, allocations: 28.69 kB / 412.8 MB, free: 13.43 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002494/0.2654, allocations: 214.9 kB / 413 MB, free: 13.18 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.362e-05/0.2654, allocations: 16.55 kB / 413 MB, free: 13.17 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.045e-05/0.2654, allocations: 12.38 kB / 413.1 MB, free: 13.16 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002234/0.2657, allocations: 119.6 kB / 413.2 MB, free: 13.04 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.895e-06/0.2657, allocations: 0 / 413.2 MB, free: 13.04 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.639e-05/0.2657, allocations: 4 kB / 413.2 MB, free: 13.03 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.631e-06/0.2657, allocations: 4 kB / 413.2 MB, free: 13.03 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001691/0.2659, allocations: 76.67 kB / 413.3 MB, free: 12.95 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007405/0.2667, allocations: 0.6133 MB / 413.9 MB, free: 12.26 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002659/0.2669, allocations: 82.62 kB / 413.9 MB, free: 12.17 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.288e-05/0.267, allocations: 32.97 kB / 414 MB, free: 12.13 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.419e-05/0.267, allocations: 4 kB / 414 MB, free: 12.13 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.95e-05/0.2671, allocations: 30.56 kB / 414 MB, free: 12.09 MB / 334.1 MB Notification: Performance of pre-optimization done (n=6): time 1.162e-06/0.2671, allocations: 0 / 414 MB, free: 12.09 MB / 334.1 MB Notification: Performance of matching and sorting (n=6): time 0.0006493/0.2677, allocations: 259.3 kB / 414.3 MB, free: 11.81 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.887e-05/0.2678, allocations: 59.33 kB / 414.3 MB, free: 11.74 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001085/0.2679, allocations: 145.8 kB / 414.5 MB, free: 11.59 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.258e-05/0.2679, allocations: 25.7 kB / 414.5 MB, free: 11.55 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.618e-05/0.268, allocations: 128 kB / 414.6 MB, free: 11.43 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.669e-05/0.268, allocations: 23.66 kB / 414.6 MB, free: 11.4 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.171e-05/0.268, allocations: 21.72 kB / 414.7 MB, free: 11.38 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 8.767e-05/0.2681, allocations: 326.8 kB / 415 MB, free: 11.05 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.369e-05/0.2682, allocations: 23.98 kB / 415 MB, free: 11.02 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.861e-05/0.2683, allocations: 42.56 kB / 415 MB, free: 10.97 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001374/0.2684, allocations: 74.5 kB / 415.1 MB, free: 10.89 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.2684, allocations: 0 / 415.1 MB, free: 10.89 MB / 334.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002738/0.2687, allocations: 138.3 kB / 415.3 MB, free: 10.75 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.367e-05/0.2687, allocations: 4 kB / 415.3 MB, free: 10.74 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.759e-06/0.2687, allocations: 0 / 415.3 MB, free: 10.74 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001739/0.2689, allocations: 32.84 kB / 415.3 MB, free: 10.71 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.999e-05/0.269, allocations: 20.05 kB / 415.3 MB, free: 10.69 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001358/0.2704, allocations: 1.69 MB / 417 MB, free: 8.855 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.537e-05/0.2705, allocations: 7.938 kB / 417 MB, free: 8.848 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.578e-06/0.2705, allocations: 4 kB / 417 MB, free: 8.844 MB / 334.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 9.391e-05/0.2706, allocations: 129.7 kB / 417.1 MB, free: 8.707 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.677e-05/0.2706, allocations: 16 kB / 417.2 MB, free: 8.691 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.095e-05/0.2706, allocations: 12.72 kB / 417.2 MB, free: 8.684 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.413e-06/0.2706, allocations: 0 / 417.2 MB, free: 8.684 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.133e-06/0.2707, allocations: 0 / 417.2 MB, free: 8.684 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.024e-06/0.2707, allocations: 0 / 417.2 MB, free: 8.684 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002033/0.2709, allocations: 217.5 kB / 417.4 MB, free: 8.422 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.293e-06/0.2709, allocations: 0 / 417.4 MB, free: 8.422 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.005e-05/0.2709, allocations: 7.984 kB / 417.4 MB, free: 8.414 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000122/0.2711, allocations: 32.84 kB / 417.4 MB, free: 8.379 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.025e-06/0.2711, allocations: 4 kB / 417.4 MB, free: 8.375 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001254/0.2723, allocations: 1.681 MB / 419.1 MB, free: 6.555 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.362e-06/0.2723, allocations: 0 / 419.1 MB, free: 6.555 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003121/0.2727, allocations: 216.2 kB / 419.3 MB, free: 6.324 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.197e-05/0.2727, allocations: 85.02 kB / 419.4 MB, free: 6.223 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.435e-05/0.2728, allocations: 4.062 kB / 419.4 MB, free: 6.219 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001057/0.2729, allocations: 7.984 kB / 419.4 MB, free: 6.211 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.126e-05/0.2729, allocations: 11.94 kB / 419.4 MB, free: 6.199 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.984e-06/0.2729, allocations: 0 / 419.4 MB, free: 6.199 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.2e-05/0.273, allocations: 122.7 kB / 419.5 MB, free: 6.082 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.273, allocations: 0 / 419.5 MB, free: 6.082 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000376/0.2734, allocations: 43.84 kB / 419.6 MB, free: 6.039 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.0005631/0.274, allocations: 0.7483 MB / 420.3 MB, free: 5.262 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000384/0.2744, allocations: 182.7 kB / 420.5 MB, free: 5.07 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.644e-06/0.2744, allocations: 4.125 kB / 420.5 MB, free: 5.066 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002029/0.2746, allocations: 166.5 kB / 420.7 MB, free: 4.891 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002832/0.2749, allocations: 8 kB / 420.7 MB, free: 4.883 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001921/0.2768, allocations: 1.71 MB / 422.4 MB, free: 3.066 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002462/0.2771, allocations: 0.7119 MB / 423.1 MB, free: 2.328 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.287e-05/0.2771, allocations: 8.469 kB / 423.1 MB, free: 2.32 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.072e-05/0.2772, allocations: 31.36 kB / 423.1 MB, free: 2.289 MB / 334.1 MB Notification: Performance of SimCode: time 5.32e-06/0.2772, allocations: 4 kB / 423.1 MB, free: 2.285 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02224/0.2994, allocations: 3.106 MB / 426.3 MB, free: 15.29 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.02/11.32, allocations: 5.891 kB / 426.3 MB, free: 15.28 MB / 350.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_Resistor_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_Resistor.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor_res.mat","/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_trunk_Modelica.Electrical.Analog.Examples.Resistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches