Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Electrical_Analog_Examples_ShowVariableResistor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ShowVariableResistor,fileNamePrefix="Modelica_3_2_3_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.0008056/0.0008056, allocations: 92.5 kB / 17.3 MB, free: 6.387 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.0008356/0.0008357, allocations: 173.8 kB / 18.2 MB, free: 5.551 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.473/1.473, allocations: 205.4 MB / 224.4 MB, free: 13.08 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004607/0.0004606, allocations: 12 kB / 281.5 MB, free: 3.316 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08761/0.08808, allocations: 47.57 MB / 329.1 MB, free: 3.676 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.003056/0.09118, allocations: 2.636 MB / 331.7 MB, free: 1.02 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001139/0.09234, allocations: 0.7098 MB / 332.4 MB, free: 308 kB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001322/0.09249, allocations: 8 kB / 332.4 MB, free: 300 kB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001576/0.09266, allocations: 39.67 kB / 332.4 MB, free: 260 kB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001647/0.09283, allocations: 87.25 kB / 332.5 MB, free: 172 kB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002541/0.0931, allocations: 75.92 kB / 332.6 MB, free: 96 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003841/0.09349, allocations: 394.2 kB / 333 MB, free: 15.7 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001871/0.09369, allocations: 91.58 kB / 333.1 MB, free: 15.62 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001884/0.09389, allocations: 131.5 kB / 333.2 MB, free: 15.49 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001764/0.09407, allocations: 151.3 kB / 333.4 MB, free: 15.34 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.84e-05/0.09412, allocations: 16 kB / 333.4 MB, free: 15.33 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.359e-05/0.09417, allocations: 20 kB / 333.4 MB, free: 15.31 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.876e-05/0.09422, allocations: 55.7 kB / 333.4 MB, free: 15.25 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001542/0.09438, allocations: 184.8 kB / 333.6 MB, free: 15.07 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002912/0.09468, allocations: 358.9 kB / 334 MB, free: 14.71 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.09469, allocations: 0 / 334 MB, free: 14.71 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.0947, allocations: 0 / 334 MB, free: 14.71 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.51e-06/0.09471, allocations: 0 / 334 MB, free: 14.71 MB / 286.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.00096/0.09568, allocations: 0.5925 MB / 334.6 MB, free: 14.07 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.909e-05/0.09573, allocations: 8.031 kB / 334.6 MB, free: 14.07 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.166e-05/0.09583, allocations: 66.72 kB / 334.6 MB, free: 13.99 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.558e-05/0.09591, allocations: 32.56 kB / 334.7 MB, free: 13.96 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003517/0.09626, allocations: 287.5 kB / 335 MB, free: 13.64 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.412e-05/0.0963, allocations: 20.94 kB / 335 MB, free: 13.62 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.063e-05/0.09634, allocations: 24.38 kB / 335 MB, free: 13.6 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005968/0.09695, allocations: 273 kB / 335.3 MB, free: 13.32 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.344e-05/0.09697, allocations: 0 / 335.3 MB, free: 13.32 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.564e-05/0.09701, allocations: 12 kB / 335.3 MB, free: 13.31 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.188e-05/0.09703, allocations: 4 kB / 335.3 MB, free: 13.31 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005531/0.09759, allocations: 234.1 kB / 335.5 MB, free: 13.08 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001697/0.0993, allocations: 0.9911 MB / 336.5 MB, free: 12.02 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005368/0.09985, allocations: 311.7 kB / 336.8 MB, free: 11.69 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002578/0.1001, allocations: 120.8 kB / 336.9 MB, free: 11.57 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.898e-05/0.1002, allocations: 0 / 336.9 MB, free: 11.57 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.096e-05/0.1002, allocations: 38.55 kB / 337 MB, free: 11.52 MB / 286.1 MB Notification: Performance of pre-optimization done (n=21): time 1.202e-06/0.1002, allocations: 4 kB / 337 MB, free: 11.52 MB / 286.1 MB Notification: Performance of matching and sorting (n=21): time 0.001424/0.1016, allocations: 0.5871 MB / 337.6 MB, free: 10.88 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.243e-05/0.1017, allocations: 59.41 kB / 337.6 MB, free: 10.81 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002808/0.102, allocations: 258.5 kB / 337.9 MB, free: 10.54 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.107e-05/0.102, allocations: 25.7 kB / 337.9 MB, free: 10.51 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001314/0.1022, allocations: 187.9 kB / 338.1 MB, free: 10.32 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.626e-05/0.1022, allocations: 67.02 kB / 338.1 MB, free: 10.25 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4e-05/0.1023, allocations: 29.7 kB / 338.2 MB, free: 10.22 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.000124/0.1024, allocations: 330.8 kB / 338.5 MB, free: 9.887 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002131/0.1026, allocations: 88.42 kB / 338.6 MB, free: 9.801 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000219/0.1028, allocations: 119.4 kB / 338.7 MB, free: 9.676 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004094/0.1033, allocations: 202.3 kB / 338.9 MB, free: 9.469 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.1033, allocations: 0 / 338.9 MB, free: 9.469 MB / 286.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006574/0.1039, allocations: 342.8 kB / 339.2 MB, free: 9.121 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.833e-05/0.104, allocations: 8 kB / 339.2 MB, free: 9.113 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.221e-06/0.104, allocations: 0 / 339.2 MB, free: 9.113 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002765/0.1043, allocations: 77.67 kB / 339.3 MB, free: 9.031 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001978/0.1045, allocations: 43.91 kB / 339.3 MB, free: 8.988 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002255/0.1067, allocations: 2.839 MB / 342.2 MB, free: 5.883 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002192/0.107, allocations: 27.94 kB / 342.2 MB, free: 5.855 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.567e-05/0.107, allocations: 4 kB / 342.2 MB, free: 5.852 MB / 286.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.0001666/0.1072, allocations: 141.8 kB / 342.4 MB, free: 5.703 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.93e-05/0.1072, allocations: 27.72 kB / 342.4 MB, free: 5.676 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.143e-05/0.1073, allocations: 30.17 kB / 342.4 MB, free: 5.648 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.567e-06/0.1073, allocations: 4 kB / 342.4 MB, free: 5.645 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.155e-06/0.1073, allocations: 3.938 kB / 342.4 MB, free: 5.641 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.106e-06/0.1073, allocations: 4 kB / 342.4 MB, free: 5.637 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001008/0.1083, allocations: 0.7027 MB / 343.1 MB, free: 4.871 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.665e-06/0.1083, allocations: 0 / 343.1 MB, free: 4.871 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001289/0.1085, allocations: 23.98 kB / 343.2 MB, free: 4.848 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000184/0.1087, allocations: 77.61 kB / 343.2 MB, free: 4.766 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.537e-05/0.1087, allocations: 4 kB / 343.2 MB, free: 4.762 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002095/0.1108, allocations: 2.831 MB / 346.1 MB, free: 1.668 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.864e-06/0.1108, allocations: 0 / 346.1 MB, free: 1.668 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006519/0.1115, allocations: 409.5 kB / 346.5 MB, free: 1.246 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.597e-05/0.1116, allocations: 100.8 kB / 346.6 MB, free: 1.129 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.789e-05/0.1116, allocations: 4 kB / 346.6 MB, free: 1.125 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002687/0.1119, allocations: 43.97 kB / 346.6 MB, free: 1.082 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.665e-05/0.1119, allocations: 27.89 kB / 346.6 MB, free: 1.055 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.458e-05/0.112, allocations: 7.938 kB / 346.6 MB, free: 1.047 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001842/0.1121, allocations: 190 kB / 346.8 MB, free: 0.8594 MB / 286.1 MB Notification: Performance of sort global known variables: time 3.11e-07/0.1122, allocations: 0 / 346.8 MB, free: 0.8594 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.000386/0.1125, allocations: 87.84 kB / 346.9 MB, free: 0.7734 MB / 286.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.0009891/0.1135, allocations: 0.9322 MB / 347.8 MB, free: 15.8 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008008/0.1144, allocations: 465.2 kB / 348.3 MB, free: 15.32 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/0.1144, allocations: 0 / 348.3 MB, free: 15.32 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004543/0.1148, allocations: 361.2 kB / 348.7 MB, free: 14.95 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004444/0.1153, allocations: 52.53 kB / 348.7 MB, free: 14.89 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003568/0.1189, allocations: 2.871 MB / 351.6 MB, free: 11.92 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003236/0.1192, allocations: 0.7639 MB / 352.3 MB, free: 11.12 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001137/0.1193, allocations: 18.3 kB / 352.4 MB, free: 11.11 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001342/0.1195, allocations: 95.41 kB / 352.5 MB, free: 11.02 MB / 302.1 MB Notification: Performance of SimCode: time 6.61e-07/0.1195, allocations: 0 / 352.5 MB, free: 11.02 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01841/0.1379, allocations: 5.838 MB / 358.3 MB, free: 5.18 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002336/0.1382, allocations: 228.3 kB / 358.5 MB, free: 4.926 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.951/2.09, allocations: 0 / 358.5 MB, free: 4.926 MB / 302.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_ShowVariableResistor_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_ShowVariableResistor.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/ShowVariableResistor/ShowVariableResistor.csv","../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches