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.00144/0.00144, allocations: 97.98 kB / 17.58 MB, free: 5.418 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.001636/0.001636, allocations: 192 kB / 18.51 MB, free: 4.508 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.416/1.416, allocations: 205.1 MB / 224.4 MB, free: 12.32 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.001574/0.001574, allocations: 55.92 kB / 280.7 MB, free: 3.094 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0861/0.08769, allocations: 46.64 MB / 327.4 MB, free: 4.383 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.003693/0.09141, allocations: 2.964 MB / 330.3 MB, free: 1.391 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.00116/0.09259, allocations: 0.7137 MB / 331.1 MB, free: 0.668 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002107/0.09282, allocations: 8 kB / 331.1 MB, free: 0.6602 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001758/0.09302, allocations: 55.44 kB / 331.1 MB, free: 0.6055 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002174/0.09325, allocations: 103 kB / 331.2 MB, free: 0.5039 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002662/0.09352, allocations: 91.8 kB / 331.3 MB, free: 424 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.000377/0.09391, allocations: 406.2 kB / 331.7 MB, free: 16 kB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001979/0.09412, allocations: 111.1 kB / 331.8 MB, free: 15.91 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002173/0.09435, allocations: 151.5 kB / 332 MB, free: 15.77 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001865/0.09454, allocations: 159.3 kB / 332.1 MB, free: 15.61 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.376e-05/0.0946, allocations: 32 kB / 332.1 MB, free: 15.58 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.744e-05/0.09468, allocations: 32 kB / 332.2 MB, free: 15.55 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.156e-05/0.09474, allocations: 79.69 kB / 332.3 MB, free: 15.47 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001606/0.09491, allocations: 183.1 kB / 332.4 MB, free: 15.29 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003124/0.09523, allocations: 378.9 kB / 332.8 MB, free: 14.92 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.327e-06/0.09524, allocations: 0 / 332.8 MB, free: 14.92 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.09525, allocations: 0 / 332.8 MB, free: 14.92 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.33e-05/0.09527, allocations: 4 kB / 332.8 MB, free: 14.91 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.0009492/0.09622, allocations: 0.6275 MB / 333.4 MB, free: 14.23 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.384e-05/0.09626, allocations: 11.89 kB / 333.5 MB, free: 14.22 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.756e-05/0.09633, allocations: 66.73 kB / 333.5 MB, free: 14.15 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.66e-05/0.09641, allocations: 36.56 kB / 333.6 MB, free: 14.11 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002948/0.09671, allocations: 283.5 kB / 333.8 MB, free: 13.8 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.896e-05/0.09673, allocations: 20.94 kB / 333.8 MB, free: 13.78 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.306e-05/0.09677, allocations: 24.38 kB / 333.9 MB, free: 13.75 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004713/0.09725, allocations: 265 kB / 334.1 MB, free: 13.49 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.125e-05/0.09727, allocations: 0 / 334.1 MB, free: 13.49 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.042e-05/0.09731, allocations: 19.92 kB / 334.2 MB, free: 13.47 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.774e-06/0.09732, allocations: 8 kB / 334.2 MB, free: 13.46 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004507/0.09777, allocations: 210.1 kB / 334.4 MB, free: 13.26 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001519/0.0993, allocations: 0.9794 MB / 335.3 MB, free: 12.21 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004714/0.09978, allocations: 295.8 kB / 335.6 MB, free: 11.89 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002214/0.1, allocations: 112.8 kB / 335.7 MB, free: 11.78 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.074e-05/0.1, allocations: 7.984 kB / 335.8 MB, free: 11.77 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.132e-05/0.1001, allocations: 34.56 kB / 335.8 MB, free: 11.73 MB / 286.1 MB Notification: Performance of pre-optimization done (n=21): time 1.433e-06/0.1001, allocations: 0 / 335.8 MB, free: 11.73 MB / 286.1 MB Notification: Performance of matching and sorting (n=21): time 0.001182/0.1013, allocations: 0.5597 MB / 336.3 MB, free: 11.12 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.99e-05/0.1013, allocations: 55.41 kB / 336.4 MB, free: 11.05 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002282/0.1015, allocations: 258.6 kB / 336.7 MB, free: 10.79 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.034e-05/0.1016, allocations: 25.7 kB / 336.7 MB, free: 10.76 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001032/0.1017, allocations: 183.9 kB / 336.9 MB, free: 10.57 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.44e-05/0.1017, allocations: 70.92 kB / 336.9 MB, free: 10.5 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.77e-05/0.1018, allocations: 45.94 kB / 337 MB, free: 10.45 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001041/0.1019, allocations: 330.8 kB / 337.3 MB, free: 10.12 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001833/0.1021, allocations: 80.42 kB / 337.4 MB, free: 10.04 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001955/0.1023, allocations: 111.4 kB / 337.5 MB, free: 9.926 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003591/0.1027, allocations: 190.3 kB / 337.7 MB, free: 9.73 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.943e-06/0.1027, allocations: 0 / 337.7 MB, free: 9.73 MB / 286.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0005824/0.1033, allocations: 322.7 kB / 338 MB, free: 9.402 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.636e-05/0.1033, allocations: 8 kB / 338 MB, free: 9.395 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.43e-06/0.1033, allocations: 0 / 338 MB, free: 9.395 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002459/0.1036, allocations: 77.73 kB / 338.1 MB, free: 9.312 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00018/0.1038, allocations: 39.91 kB / 338.1 MB, free: 9.273 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002207/0.106, allocations: 3.051 MB / 341.2 MB, free: 5.938 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001871/0.1062, allocations: 19.84 kB / 341.2 MB, free: 5.918 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.76e-05/0.1062, allocations: 11.98 kB / 341.2 MB, free: 5.906 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.0001246/0.1063, allocations: 141.8 kB / 341.3 MB, free: 5.758 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.272e-05/0.1064, allocations: 31.62 kB / 341.4 MB, free: 5.727 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.377e-05/0.1064, allocations: 30.17 kB / 341.4 MB, free: 5.699 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.456e-06/0.1065, allocations: 4 kB / 341.4 MB, free: 5.695 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.152e-06/0.1065, allocations: 0 / 341.4 MB, free: 5.695 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.909e-06/0.1065, allocations: 0 / 341.4 MB, free: 5.695 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009592/0.1074, allocations: 0.6955 MB / 342.1 MB, free: 4.938 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.775e-06/0.1075, allocations: 0 / 342.1 MB, free: 4.938 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001258/0.1076, allocations: 23.98 kB / 342.1 MB, free: 4.914 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001818/0.1078, allocations: 81.61 kB / 342.2 MB, free: 4.828 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.46e-05/0.1078, allocations: 8 kB / 342.2 MB, free: 4.82 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002264/0.1101, allocations: 3.036 MB / 345.2 MB, free: 1.508 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.462e-06/0.1101, allocations: 256 / 345.2 MB, free: 1.508 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005835/0.1107, allocations: 384.8 kB / 345.6 MB, free: 1.109 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.075e-05/0.1108, allocations: 108.8 kB / 345.7 MB, free: 0.9844 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.128e-05/0.1108, allocations: 8 kB / 345.7 MB, free: 0.9766 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002542/0.1111, allocations: 27.97 kB / 345.7 MB, free: 0.9492 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.082e-05/0.1111, allocations: 27.91 kB / 345.8 MB, free: 0.9219 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.504e-05/0.1111, allocations: 8 kB / 345.8 MB, free: 0.9141 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001672/0.1113, allocations: 186 kB / 346 MB, free: 0.7305 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1113, allocations: 0 / 346 MB, free: 0.7305 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.000397/0.1117, allocations: 95.75 kB / 346.1 MB, free: 0.6367 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.0009035/0.1126, allocations: 0.9128 MB / 347 MB, free: 15.69 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009134/0.1136, allocations: 453.1 kB / 347.4 MB, free: 15.22 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.876e-06/0.1136, allocations: 0 / 347.4 MB, free: 15.22 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004999/0.1141, allocations: 345.3 kB / 347.8 MB, free: 14.86 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004453/0.1145, allocations: 48.47 kB / 347.8 MB, free: 14.81 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003721/0.1183, allocations: 2.714 MB / 350.5 MB, free: 11.99 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000344/0.1186, allocations: 0.7637 MB / 351.3 MB, free: 11.2 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001252/0.1188, allocations: 22.3 kB / 351.3 MB, free: 11.18 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000123/0.1189, allocations: 95.39 kB / 351.4 MB, free: 11.09 MB / 302.1 MB Notification: Performance of SimCode: time 7.41e-07/0.1189, allocations: 0 / 351.4 MB, free: 11.09 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03112/0.15, allocations: 6.289 MB / 357.7 MB, free: 4.734 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.058/9.208, allocations: 7.688 kB / 357.7 MB, free: 4.727 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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches