Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.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.ShowVariableResistor,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ShowVariableResistor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ShowVariableResistor,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ShowVariableResistor",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.001672/0.001672, allocations: 107.9 kB / 17.06 MB, free: 6.004 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.001817/0.001817, allocations: 189.4 kB / 18 MB, free: 5.09 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.376/1.376, allocations: 222.9 MB / 241.7 MB, free: 15.18 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001426/0.001427, allocations: 43.92 kB / 350.8 MB, free: 3.75 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2611/0.2626, allocations: 49.43 MB / 400.2 MB, free: 8.426 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.004399/0.267, allocations: 3.014 MB / 403.3 MB, free: 5.809 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00122/0.2683, allocations: 0.6777 MB / 403.9 MB, free: 5.125 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001497/0.2684, allocations: 11.94 kB / 403.9 MB, free: 5.113 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001689/0.2686, allocations: 47.5 kB / 404 MB, free: 5.066 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002162/0.2689, allocations: 99.06 kB / 404.1 MB, free: 4.969 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003116/0.2692, allocations: 91.86 kB / 404.2 MB, free: 4.879 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004448/0.2697, allocations: 418.1 kB / 404.6 MB, free: 4.469 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002587/0.2699, allocations: 111.1 kB / 404.7 MB, free: 4.355 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002208/0.2702, allocations: 143.5 kB / 404.8 MB, free: 4.215 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002085/0.2704, allocations: 171.2 kB / 405 MB, free: 4.047 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.471e-05/0.2704, allocations: 36 kB / 405 MB, free: 4.012 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.951e-05/0.2705, allocations: 32 kB / 405.1 MB, free: 3.98 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.232e-05/0.2706, allocations: 67.77 kB / 405.1 MB, free: 3.914 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001837/0.2708, allocations: 179.1 kB / 405.3 MB, free: 3.738 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004356/0.2712, allocations: 385.4 kB / 405.7 MB, free: 3.363 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.599e-06/0.2712, allocations: 3.938 kB / 405.7 MB, free: 3.359 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.2712, allocations: 0 / 405.7 MB, free: 3.359 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.543e-06/0.2712, allocations: 0 / 405.7 MB, free: 3.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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.001062/0.2723, allocations: 0.6428 MB / 406.3 MB, free: 2.664 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.261e-05/0.2724, allocations: 11.89 kB / 406.3 MB, free: 2.652 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.771e-05/0.2724, allocations: 66.72 kB / 406.4 MB, free: 2.578 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.168e-05/0.2725, allocations: 40.7 kB / 406.4 MB, free: 2.539 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004192/0.273, allocations: 283.7 kB / 406.7 MB, free: 2.223 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.94e-05/0.273, allocations: 16.94 kB / 406.7 MB, free: 2.207 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.501e-05/0.273, allocations: 28.38 kB / 406.8 MB, free: 2.18 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005307/0.2736, allocations: 257 kB / 407 MB, free: 1.926 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.178e-05/0.2736, allocations: 0 / 407 MB, free: 1.926 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.818e-05/0.2736, allocations: 12 kB / 407 MB, free: 1.914 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.013e-05/0.2736, allocations: 8 kB / 407 MB, free: 1.906 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005264/0.2742, allocations: 218.1 kB / 407.3 MB, free: 1.695 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001715/0.2759, allocations: 0.968 MB / 408.2 MB, free: 0.6562 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005837/0.2765, allocations: 299.8 kB / 408.5 MB, free: 344 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002398/0.2767, allocations: 108.8 kB / 408.6 MB, free: 232 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.427e-05/0.2768, allocations: 0 / 408.6 MB, free: 232 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.399e-05/0.2768, allocations: 46.55 kB / 408.7 MB, free: 176 kB / 318.1 MB Notification: Performance of pre-optimization done (n=21): time 1.253e-06/0.2768, allocations: 0 / 408.7 MB, free: 176 kB / 318.1 MB Notification: Performance of matching and sorting (n=21): time 0.001418/0.2783, allocations: 0.5615 MB / 409.2 MB, free: 15.56 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.596e-05/0.2783, allocations: 55.41 kB / 409.3 MB, free: 15.5 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003047/0.2786, allocations: 258.6 kB / 409.5 MB, free: 15.24 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.759e-05/0.2787, allocations: 29.7 kB / 409.6 MB, free: 15.2 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001541/0.2788, allocations: 188.2 kB / 409.7 MB, free: 15.02 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.527e-05/0.2789, allocations: 71.39 kB / 409.8 MB, free: 14.95 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.818e-05/0.279, allocations: 41.94 kB / 409.9 MB, free: 14.89 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001588/0.2791, allocations: 334.8 kB / 410.2 MB, free: 14.56 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002024/0.2794, allocations: 80.42 kB / 410.3 MB, free: 14.48 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002419/0.2796, allocations: 112.1 kB / 410.4 MB, free: 14.36 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004303/0.28, allocations: 190.4 kB / 410.6 MB, free: 14.16 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/0.2801, allocations: 0 / 410.6 MB, free: 14.16 MB / 334.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006943/0.2808, allocations: 322.8 kB / 410.9 MB, free: 13.84 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.063e-05/0.2808, allocations: 8.062 kB / 410.9 MB, free: 13.83 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.843e-06/0.2808, allocations: 3.938 kB / 410.9 MB, free: 13.82 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003079/0.2811, allocations: 73.67 kB / 411 MB, free: 13.75 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002076/0.2813, allocations: 39.91 kB / 411 MB, free: 13.71 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003057/0.2844, allocations: 3.059 MB / 414.1 MB, free: 10.37 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002224/0.2846, allocations: 23.88 kB / 414.1 MB, free: 10.34 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.273e-05/0.2847, allocations: 16.06 kB / 414.1 MB, free: 10.33 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 (20): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,4,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001848/0.2849, allocations: 143.6 kB / 414.2 MB, free: 10.18 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.634e-05/0.2849, allocations: 23.86 kB / 414.3 MB, free: 10.16 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.896e-05/0.285, allocations: 30.19 kB / 414.3 MB, free: 10.12 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.964e-06/0.285, allocations: 0 / 414.3 MB, free: 10.12 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.17e-05/0.285, allocations: 7.984 kB / 414.3 MB, free: 10.12 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.326e-06/0.285, allocations: 0 / 414.3 MB, free: 10.12 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001427/0.2865, allocations: 0.6835 MB / 415 MB, free: 9.367 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.336e-06/0.2865, allocations: 0 / 415 MB, free: 9.367 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001425/0.2866, allocations: 27.98 kB / 415 MB, free: 9.34 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002314/0.2869, allocations: 77.61 kB / 415.1 MB, free: 9.258 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.624e-05/0.2869, allocations: 4 kB / 415.1 MB, free: 9.254 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002733/0.2896, allocations: 3.04 MB / 418.1 MB, free: 5.93 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.2897, allocations: 3.938 kB / 418.1 MB, free: 5.926 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008049/0.2905, allocations: 388.5 kB / 418.5 MB, free: 5.527 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001016/0.2906, allocations: 112.8 kB / 418.6 MB, free: 5.398 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.035e-05/0.2906, allocations: 4 kB / 418.6 MB, free: 5.395 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002702/0.2909, allocations: 35.97 kB / 418.7 MB, free: 5.359 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.461e-05/0.291, allocations: 15.97 kB / 418.7 MB, free: 5.344 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.916e-05/0.291, allocations: 8 kB / 418.7 MB, free: 5.336 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002351/0.2912, allocations: 186 kB / 418.9 MB, free: 5.152 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2913, allocations: 0 / 418.9 MB, free: 5.152 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004683/0.2917, allocations: 95.83 kB / 419 MB, free: 5.059 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 (13): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,4,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001204/0.2929, allocations: 0.9206 MB / 419.9 MB, free: 4.105 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0009965/0.294, allocations: 452.2 kB / 420.3 MB, free: 3.641 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.701e-06/0.294, allocations: 4 kB / 420.3 MB, free: 3.637 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005362/0.2945, allocations: 349.3 kB / 420.7 MB, free: 3.27 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004376/0.295, allocations: 40.55 kB / 420.7 MB, free: 3.23 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004135/0.2991, allocations: 2.706 MB / 423.4 MB, free: 424 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004478/0.2996, allocations: 0.7602 MB / 424.2 MB, free: 15.63 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001336/0.2997, allocations: 30.27 kB / 424.2 MB, free: 15.6 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001411/0.2999, allocations: 91.41 kB / 424.3 MB, free: 15.51 MB / 350.1 MB Notification: Performance of SimCode: time 6.21e-07/0.2999, allocations: 3.938 kB / 424.3 MB, free: 15.5 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03478/0.3347, allocations: 6.416 MB / 430.7 MB, free: 9.25 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.652/9.987, allocations: 10.5 kB / 430.7 MB, free: 9.242 MB / 350.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ShowVariableResistor_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ShowVariableResistor.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/ShowVariableResistor/ShowVariableResistor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches