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.00175/0.00175, allocations: 121.6 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002082/0.002083, allocations: 203.9 kB / 18.74 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.472/1.472, allocations: 227.4 MB / 247 MB, free: 10.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001769/0.001769, allocations: 67.88 kB / 358.3 MB, free: 13.35 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2619/0.2637, allocations: 50.55 MB / 408.8 MB, free: 1.473 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Resistor): time 0.003533/0.2673, allocations: 2.161 MB / 411 MB, free: 15.3 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001145/0.2684, allocations: 0.6156 MB / 411.6 MB, free: 14.68 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.239e-05/0.2685, allocations: 0 / 411.6 MB, free: 14.68 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001272/0.2687, allocations: 19.8 kB / 411.6 MB, free: 14.66 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001017/0.2688, allocations: 43.56 kB / 411.7 MB, free: 14.62 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002526/0.2691, allocations: 51.88 kB / 411.7 MB, free: 14.57 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002141/0.2693, allocations: 163.2 kB / 411.9 MB, free: 14.41 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001677/0.2695, allocations: 61.44 kB / 411.9 MB, free: 14.34 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001626/0.2697, allocations: 59.8 kB / 412 MB, free: 14.28 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001149/0.2698, allocations: 67.69 kB / 412.1 MB, free: 14.21 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.586e-05/0.2698, allocations: 12 kB / 412.1 MB, free: 14.2 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.836e-05/0.2699, allocations: 31.98 kB / 412.1 MB, free: 14.17 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.079e-05/0.2699, allocations: 27.8 kB / 412.1 MB, free: 14.14 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.78e-05/0.27, allocations: 71.67 kB / 412.2 MB, free: 14.07 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002574/0.2703, allocations: 170.3 kB / 412.4 MB, free: 13.91 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.506e-06/0.2703, allocations: 4 kB / 412.4 MB, free: 13.91 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.273e-06/0.2703, allocations: 0 / 412.4 MB, free: 13.91 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.617e-06/0.2703, allocations: 0 / 412.4 MB, free: 13.91 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.0006482/0.271, allocations: 447 kB / 412.8 MB, free: 13.42 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.302e-05/0.271, allocations: 8.031 kB / 412.8 MB, free: 13.41 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.645e-05/0.2711, allocations: 42.73 kB / 412.9 MB, free: 13.36 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001901/0.2713, allocations: 28.83 kB / 412.9 MB, free: 13.33 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003282/0.2716, allocations: 216.1 kB / 413.1 MB, free: 13.08 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.753e-05/0.2717, allocations: 12.61 kB / 413.1 MB, free: 13.07 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.449e-05/0.2717, allocations: 8.375 kB / 413.1 MB, free: 13.06 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002647/0.272, allocations: 123.6 kB / 413.2 MB, free: 12.94 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.239e-05/0.272, allocations: 0 / 413.2 MB, free: 12.94 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.811e-05/0.272, allocations: 4 kB / 413.3 MB, free: 12.93 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.436e-06/0.272, allocations: 4 kB / 413.3 MB, free: 12.93 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002002/0.2722, allocations: 84.59 kB / 413.3 MB, free: 12.85 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009099/0.2732, allocations: 0.5941 MB / 413.9 MB, free: 12.17 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002997/0.2735, allocations: 86.56 kB / 414 MB, free: 12.08 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.447e-05/0.2736, allocations: 36.91 kB / 414.1 MB, free: 12.04 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.94e-05/0.2736, allocations: 4 kB / 414.1 MB, free: 12.04 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.847e-05/0.2736, allocations: 30.56 kB / 414.1 MB, free: 12 MB / 334.1 MB Notification: Performance of pre-optimization done (n=6): time 1.153e-06/0.2736, allocations: 0 / 414.1 MB, free: 12 MB / 334.1 MB Notification: Performance of matching and sorting (n=6): time 0.0007658/0.2744, allocations: 263.4 kB / 414.3 MB, free: 11.71 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.94e-05/0.2745, allocations: 51.41 kB / 414.4 MB, free: 11.65 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001558/0.2746, allocations: 157.2 kB / 414.5 MB, free: 11.49 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.296e-05/0.2747, allocations: 33.64 kB / 414.6 MB, free: 11.45 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.146e-05/0.2748, allocations: 124.1 kB / 414.7 MB, free: 11.32 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.895e-05/0.2748, allocations: 19.84 kB / 414.7 MB, free: 11.3 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.158e-05/0.2748, allocations: 29.66 kB / 414.7 MB, free: 11.27 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001561/0.275, allocations: 322.8 kB / 415.1 MB, free: 10.95 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.744e-05/0.2751, allocations: 20 kB / 415.1 MB, free: 10.93 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.423e-05/0.2752, allocations: 42.56 kB / 415.1 MB, free: 10.88 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001548/0.2753, allocations: 74.48 kB / 415.2 MB, free: 10.79 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.278e-06/0.2753, allocations: 4 kB / 415.2 MB, free: 10.79 MB / 334.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002967/0.2756, allocations: 142.2 kB / 415.3 MB, free: 10.64 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.381e-05/0.2757, allocations: 4 kB / 415.3 MB, free: 10.64 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.728e-06/0.2757, allocations: 0 / 415.3 MB, free: 10.64 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001876/0.2759, allocations: 41.08 kB / 415.4 MB, free: 10.59 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.524e-05/0.2759, allocations: 12.06 kB / 415.4 MB, free: 10.58 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001642/0.2776, allocations: 1.684 MB / 417.1 MB, free: 8.758 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.369e-05/0.2777, allocations: 11.94 kB / 417.1 MB, free: 8.746 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.765e-06/0.2777, allocations: 0 / 417.1 MB, free: 8.746 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 0.0001179/0.2778, allocations: 125.8 kB / 417.2 MB, free: 8.613 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.435e-05/0.2779, allocations: 12.02 kB / 417.2 MB, free: 8.602 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.094e-05/0.2779, allocations: 12.72 kB / 417.2 MB, free: 8.594 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.442e-06/0.2779, allocations: 0 / 417.2 MB, free: 8.594 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.683e-06/0.2779, allocations: 0 / 417.2 MB, free: 8.594 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.948e-06/0.2779, allocations: 4.172 kB / 417.2 MB, free: 8.59 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002526/0.2782, allocations: 217.5 kB / 417.5 MB, free: 8.328 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.282e-06/0.2782, allocations: 7.875 kB / 417.5 MB, free: 8.32 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.227e-05/0.2782, allocations: 0 / 417.5 MB, free: 8.32 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001309/0.2784, allocations: 44.95 kB / 417.5 MB, free: 8.273 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.187e-06/0.2784, allocations: 4 kB / 417.5 MB, free: 8.27 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001575/0.28, allocations: 1.681 MB / 419.2 MB, free: 6.449 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.28, allocations: 0 / 419.2 MB, free: 6.449 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003282/0.2803, allocations: 212.2 kB / 419.4 MB, free: 6.223 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.384e-05/0.2804, allocations: 85.06 kB / 419.5 MB, free: 6.121 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.315e-05/0.2804, allocations: 64 / 419.5 MB, free: 6.121 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.723e-05/0.2805, allocations: 11.98 kB / 419.5 MB, free: 6.109 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.443e-05/0.2806, allocations: 8 kB / 419.5 MB, free: 6.102 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.149e-05/0.2806, allocations: 3.984 kB / 419.5 MB, free: 6.098 MB / 334.1 MB Notification: Performance of sorting global known variables: time 9.091e-05/0.2807, allocations: 115.1 kB / 419.6 MB, free: 5.984 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2807, allocations: 0 / 419.6 MB, free: 5.984 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000366/0.281, allocations: 43.89 kB / 419.7 MB, free: 5.941 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.0006324/0.2817, allocations: 0.7555 MB / 420.4 MB, free: 5.16 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004066/0.2821, allocations: 190.5 kB / 420.6 MB, free: 4.961 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.2821, allocations: 4.125 kB / 420.6 MB, free: 4.957 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002263/0.2823, allocations: 154.7 kB / 420.8 MB, free: 4.793 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002595/0.2826, allocations: 8 kB / 420.8 MB, free: 4.785 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002139/0.2848, allocations: 1.72 MB / 422.5 MB, free: 2.961 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003602/0.2851, allocations: 0.7119 MB / 423.2 MB, free: 2.223 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.791e-05/0.2852, allocations: 8.422 kB / 423.2 MB, free: 2.215 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.48e-05/0.2853, allocations: 27.44 kB / 423.2 MB, free: 2.188 MB / 334.1 MB Notification: Performance of SimCode: time 4.9e-07/0.2853, allocations: 0 / 423.2 MB, free: 2.188 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02886/0.3141, allocations: 3.062 MB / 426.3 MB, free: 15.23 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.4/11.72, allocations: 0.8906 kB / 426.3 MB, free: 15.23 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.1.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