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.001347/0.001347, allocations: 96.39 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.001337/0.001337, allocations: 196 kB / 18.51 MB, free: 4.504 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.548/1.548, allocations: 205.1 MB / 224.4 MB, free: 12.3 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.00259/0.00259, allocations: 55.94 kB / 280.8 MB, free: 3.07 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1093/0.1119, allocations: 46.63 MB / 327.4 MB, free: 4.375 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.004245/0.1162, allocations: 2.96 MB / 330.3 MB, free: 1.387 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001163/0.1174, allocations: 0.7253 MB / 331.1 MB, free: 0.6523 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001261/0.1176, allocations: 8 kB / 331.1 MB, free: 0.6445 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001522/0.1177, allocations: 51.44 kB / 331.1 MB, free: 0.5938 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001796/0.1179, allocations: 103 kB / 331.2 MB, free: 0.4922 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002363/0.1182, allocations: 91.86 kB / 331.3 MB, free: 412 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004307/0.1186, allocations: 414.2 kB / 331.7 MB, free: 15.99 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001969/0.1188, allocations: 103 kB / 331.8 MB, free: 15.9 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000201/0.119, allocations: 143.6 kB / 332 MB, free: 15.76 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002063/0.1192, allocations: 171.2 kB / 332.1 MB, free: 15.59 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.291e-05/0.1193, allocations: 36 kB / 332.2 MB, free: 15.56 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.689e-05/0.1194, allocations: 32 kB / 332.2 MB, free: 15.53 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.545e-05/0.1194, allocations: 79.69 kB / 332.3 MB, free: 15.45 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001644/0.1196, allocations: 167.2 kB / 332.4 MB, free: 15.29 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003654/0.12, allocations: 378.9 kB / 332.8 MB, free: 14.91 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.611e-06/0.12, allocations: 3.984 kB / 332.8 MB, free: 14.91 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.12, allocations: 4 kB / 332.8 MB, free: 14.91 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.65e-06/0.12, allocations: 0 / 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.001011/0.121, allocations: 0.6274 MB / 333.4 MB, free: 14.23 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.591e-05/0.1211, allocations: 11.89 kB / 333.5 MB, free: 14.21 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.451e-05/0.1212, allocations: 66.72 kB / 333.5 MB, free: 14.14 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.977e-05/0.1212, allocations: 36.56 kB / 333.6 MB, free: 14.11 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003291/0.1216, allocations: 279.5 kB / 333.8 MB, free: 13.79 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.268e-05/0.1216, allocations: 24.94 kB / 333.8 MB, free: 13.77 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.731e-05/0.1216, allocations: 24.38 kB / 333.9 MB, free: 13.75 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005081/0.1222, allocations: 264.9 kB / 334.1 MB, free: 13.48 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.222e-05/0.1222, allocations: 0 / 334.1 MB, free: 13.48 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.344e-05/0.1222, allocations: 15.94 kB / 334.1 MB, free: 13.47 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.556e-06/0.1222, allocations: 8 kB / 334.2 MB, free: 13.46 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004915/0.1227, allocations: 218.1 kB / 334.4 MB, free: 13.25 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001683/0.1244, allocations: 0.9716 MB / 335.3 MB, free: 12.21 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005421/0.125, allocations: 303.7 kB / 335.6 MB, free: 11.88 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002346/0.1252, allocations: 108.8 kB / 335.7 MB, free: 11.77 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.694e-05/0.1252, allocations: 0 / 335.7 MB, free: 11.77 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.013e-05/0.1253, allocations: 38.56 kB / 335.8 MB, free: 11.73 MB / 286.1 MB Notification: Performance of pre-optimization done (n=21): time 1.273e-06/0.1253, allocations: 0 / 335.8 MB, free: 11.73 MB / 286.1 MB Notification: Performance of matching and sorting (n=21): time 0.001334/0.1266, allocations: 0.5559 MB / 336.3 MB, free: 11.12 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.208e-05/0.1267, allocations: 55.41 kB / 336.4 MB, free: 11.05 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000274/0.127, allocations: 258.6 kB / 336.6 MB, free: 10.79 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.479e-05/0.127, allocations: 29.64 kB / 336.7 MB, free: 10.76 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000134/0.1271, allocations: 187.9 kB / 336.9 MB, free: 10.57 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.765e-05/0.1272, allocations: 66.92 kB / 336.9 MB, free: 10.5 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.151e-05/0.1273, allocations: 45.94 kB / 337 MB, free: 10.45 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001492/0.1275, allocations: 330.8 kB / 337.3 MB, free: 10.12 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002113/0.1277, allocations: 84.36 kB / 337.4 MB, free: 10.04 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000218/0.1279, allocations: 107.5 kB / 337.5 MB, free: 9.922 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004088/0.1283, allocations: 186.3 kB / 337.7 MB, free: 9.73 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.624e-06/0.1283, allocations: 8 kB / 337.7 MB, free: 9.723 MB / 286.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006775/0.129, allocations: 318.7 kB / 338 MB, free: 9.398 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.825e-05/0.1291, allocations: 8 kB / 338 MB, free: 9.391 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.843e-06/0.1291, allocations: 3.984 kB / 338 MB, free: 9.387 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002753/0.1294, allocations: 81.73 kB / 338.1 MB, free: 9.301 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002013/0.1296, allocations: 35.97 kB / 338.1 MB, free: 9.266 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003249/0.1328, allocations: 3.048 MB / 341.2 MB, free: 5.934 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003166/0.1332, allocations: 23.83 kB / 341.2 MB, free: 5.91 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.6e-05/0.1332, allocations: 8.062 kB / 341.2 MB, free: 5.902 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.0002384/0.1335, allocations: 145.7 kB / 341.3 MB, free: 5.75 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.785e-05/0.1336, allocations: 35.61 kB / 341.4 MB, free: 5.715 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.387e-05/0.1337, allocations: 26.19 kB / 341.4 MB, free: 5.691 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.47e-06/0.1337, allocations: 4 kB / 341.4 MB, free: 5.688 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.737e-06/0.1337, allocations: 0 / 341.4 MB, free: 5.688 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.045e-05/0.1337, allocations: 3.984 kB / 341.4 MB, free: 5.684 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001485/0.1352, allocations: 0.6877 MB / 342.1 MB, free: 4.934 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.216e-06/0.1352, allocations: 0 / 342.1 MB, free: 4.934 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001562/0.1354, allocations: 31.97 kB / 342.1 MB, free: 4.902 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002095/0.1356, allocations: 73.67 kB / 342.2 MB, free: 4.824 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.63e-05/0.1356, allocations: 8 kB / 342.2 MB, free: 4.816 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002648/0.1383, allocations: 3.044 MB / 345.2 MB, free: 1.496 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.372e-06/0.1383, allocations: 0 / 345.2 MB, free: 1.496 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007336/0.139, allocations: 384.8 kB / 345.6 MB, free: 1.098 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.237e-05/0.1391, allocations: 108.8 kB / 345.7 MB, free: 0.9727 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.308e-05/0.1392, allocations: 4 kB / 345.7 MB, free: 0.9688 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002731/0.1395, allocations: 31.97 kB / 345.8 MB, free: 0.9375 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.866e-05/0.1396, allocations: 19.92 kB / 345.8 MB, free: 0.918 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.429e-05/0.1396, allocations: 8 kB / 345.8 MB, free: 0.9102 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002021/0.1398, allocations: 190 kB / 346 MB, free: 0.7227 MB / 286.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1398, allocations: 0 / 346 MB, free: 0.7227 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.000425/0.1402, allocations: 95.75 kB / 346.1 MB, free: 0.6289 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.001028/0.1413, allocations: 0.9167 MB / 347 MB, free: 15.68 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008341/0.1421, allocations: 445.1 kB / 347.4 MB, free: 15.21 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.1421, allocations: 0 / 347.4 MB, free: 15.21 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000464/0.1426, allocations: 349.3 kB / 347.8 MB, free: 14.85 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004562/0.1431, allocations: 48.48 kB / 347.8 MB, free: 14.8 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003869/0.1469, allocations: 2.71 MB / 350.5 MB, free: 11.99 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004603/0.1474, allocations: 0.7676 MB / 351.3 MB, free: 11.2 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001175/0.1475, allocations: 26.28 kB / 351.3 MB, free: 11.17 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001303/0.1477, allocations: 91.41 kB / 351.4 MB, free: 11.08 MB / 302.1 MB Notification: Performance of SimCode: time 4.81e-07/0.1477, allocations: 0 / 351.4 MB, free: 11.08 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03773/0.1854, allocations: 6.293 MB / 357.7 MB, free: 4.723 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.55/10.74, allocations: 7.734 kB / 357.7 MB, free: 4.715 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 & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 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.csv","/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