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.001774/0.001773, allocations: 104.5 kB / 17.58 MB, free: 5.441 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.002265/0.002265, allocations: 191.9 kB / 18.51 MB, free: 4.523 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.545/1.545, 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.001249/0.00125, allocations: 56.14 kB / 280.7 MB, free: 3.09 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.11/0.1113, allocations: 46.63 MB / 327.4 MB, free: 4.391 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.004904/0.1162, allocations: 2.956 MB / 330.3 MB, free: 1.406 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001709/0.118, allocations: 0.7214 MB / 331.1 MB, free: 0.6758 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001951/0.1182, allocations: 15.88 kB / 331.1 MB, free: 0.6602 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002019/0.1185, allocations: 47.5 kB / 331.1 MB, free: 0.6133 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002056/0.1187, allocations: 103.1 kB / 331.2 MB, free: 0.5117 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003169/0.119, allocations: 87.86 kB / 331.3 MB, free: 436 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004424/0.1195, allocations: 414.2 kB / 331.7 MB, free: 20 kB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002901/0.1198, allocations: 111.1 kB / 331.8 MB, free: 15.92 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002327/0.12, allocations: 151.5 kB / 332 MB, free: 15.77 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002018/0.1202, allocations: 163.3 kB / 332.1 MB, free: 15.61 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.718e-05/0.1203, allocations: 35.94 kB / 332.2 MB, free: 15.57 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.593e-05/0.1204, allocations: 32 kB / 332.2 MB, free: 15.54 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.653e-05/0.1205, allocations: 71.75 kB / 332.3 MB, free: 15.47 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001859/0.1206, allocations: 171.1 kB / 332.4 MB, free: 15.3 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004379/0.1211, allocations: 382.9 kB / 332.8 MB, free: 14.93 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.214e-06/0.1211, allocations: 4 kB / 332.8 MB, free: 14.93 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.234e-06/0.1211, allocations: 0 / 332.8 MB, free: 14.93 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.108e-05/0.1211, allocations: 0 / 332.8 MB, free: 14.93 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.001167/0.1223, allocations: 0.6275 MB / 333.4 MB, free: 14.25 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.547e-05/0.1224, allocations: 15.89 kB / 333.5 MB, free: 14.23 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.611e-05/0.1225, allocations: 66.72 kB / 333.5 MB, free: 14.16 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.82e-05/0.1226, allocations: 36.56 kB / 333.6 MB, free: 14.12 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003576/0.1229, allocations: 283.5 kB / 333.8 MB, free: 13.8 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.585e-05/0.1229, allocations: 16.94 kB / 333.8 MB, free: 13.79 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.651e-05/0.123, allocations: 32.31 kB / 333.9 MB, free: 13.76 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005217/0.1235, allocations: 261 kB / 334.1 MB, free: 13.5 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.234e-05/0.1235, allocations: 0 / 334.1 MB, free: 13.5 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.379e-05/0.1236, allocations: 12 kB / 334.1 MB, free: 13.49 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.518e-05/0.1236, allocations: 8 kB / 334.2 MB, free: 13.48 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004819/0.1241, allocations: 214.1 kB / 334.4 MB, free: 13.27 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001736/0.1258, allocations: 0.9794 MB / 335.3 MB, free: 12.22 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005687/0.1264, allocations: 303.7 kB / 335.6 MB, free: 11.9 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002388/0.1267, allocations: 108.8 kB / 335.7 MB, free: 11.79 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.507e-05/0.1267, allocations: 0 / 335.7 MB, free: 11.79 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.695e-05/0.1268, allocations: 38.56 kB / 335.8 MB, free: 11.74 MB / 286.1 MB Notification: Performance of pre-optimization done (n=21): time 1.263e-06/0.1268, allocations: 0 / 335.8 MB, free: 11.74 MB / 286.1 MB Notification: Performance of matching and sorting (n=21): time 0.001343/0.1281, allocations: 0.5597 MB / 336.3 MB, free: 11.13 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.052e-05/0.1282, allocations: 55.41 kB / 336.4 MB, free: 11.07 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002597/0.1284, allocations: 254.6 kB / 336.6 MB, free: 10.81 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.468e-05/0.1285, allocations: 29.7 kB / 336.7 MB, free: 10.77 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001123/0.1286, allocations: 179.9 kB / 336.8 MB, free: 10.59 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.15e-05/0.1286, allocations: 74.91 kB / 336.9 MB, free: 10.52 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001/0.1288, allocations: 49.88 kB / 337 MB, free: 10.46 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001226/0.1289, allocations: 334.8 kB / 337.3 MB, free: 10.12 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002028/0.1291, allocations: 76.42 kB / 337.4 MB, free: 10.05 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002077/0.1293, allocations: 103.5 kB / 337.5 MB, free: 9.941 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003689/0.1297, allocations: 194.3 kB / 337.7 MB, free: 9.742 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/0.1297, allocations: 0 / 337.7 MB, free: 9.742 MB / 286.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006133/0.1303, allocations: 322.8 kB / 338 MB, free: 9.414 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.817e-05/0.1303, allocations: 8 kB / 338 MB, free: 9.406 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.731e-06/0.1304, allocations: 0 / 338 MB, free: 9.406 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002798/0.1306, allocations: 73.67 kB / 338.1 MB, free: 9.328 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000199/0.1309, allocations: 43.91 kB / 338.1 MB, free: 9.285 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002347/0.1332, allocations: 3.051 MB / 341.2 MB, free: 5.949 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002128/0.1334, allocations: 19.83 kB / 341.2 MB, free: 5.93 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.915e-05/0.1335, allocations: 8 kB / 341.2 MB, free: 5.922 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.0001828/0.1337, allocations: 137.8 kB / 341.3 MB, free: 5.777 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.477e-05/0.1337, allocations: 35.69 kB / 341.3 MB, free: 5.742 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.285e-05/0.1338, allocations: 34.16 kB / 341.4 MB, free: 5.711 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.238e-06/0.1338, allocations: 7.938 kB / 341.4 MB, free: 5.703 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.899e-06/0.1338, allocations: 0 / 341.4 MB, free: 5.703 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.22e-06/0.1338, allocations: 3.984 kB / 341.4 MB, free: 5.699 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001066/0.1349, allocations: 0.6878 MB / 342.1 MB, free: 4.949 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.916e-06/0.1349, allocations: 0 / 342.1 MB, free: 4.949 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001326/0.1351, allocations: 31.97 kB / 342.1 MB, free: 4.918 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001983/0.1353, allocations: 73.61 kB / 342.2 MB, free: 4.84 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.435e-05/0.1353, allocations: 12 kB / 342.2 MB, free: 4.828 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002185/0.1375, allocations: 3.036 MB / 345.2 MB, free: 1.516 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.664e-06/0.1375, allocations: 0 / 345.2 MB, free: 1.516 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006027/0.1381, allocations: 384.8 kB / 345.6 MB, free: 1.117 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.675e-05/0.1382, allocations: 108.8 kB / 345.7 MB, free: 0.9922 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.163e-05/0.1382, allocations: 4 kB / 345.7 MB, free: 0.9883 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002521/0.1385, allocations: 31.97 kB / 345.7 MB, free: 0.957 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.634e-05/0.1386, allocations: 23.92 kB / 345.8 MB, free: 0.9336 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.478e-05/0.1386, allocations: 4 kB / 345.8 MB, free: 0.9297 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001666/0.1388, allocations: 190 kB / 346 MB, free: 0.7422 MB / 286.1 MB Notification: Performance of sort global known variables: time 4.51e-07/0.1388, allocations: 0 / 346 MB, free: 0.7422 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003868/0.1392, allocations: 95.75 kB / 346.1 MB, free: 0.6484 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.0008948/0.1401, allocations: 0.9089 MB / 347 MB, free: 15.7 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008673/0.141, allocations: 453.1 kB / 347.4 MB, free: 15.23 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.481e-06/0.141, allocations: 0 / 347.4 MB, free: 15.23 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00043/0.1414, allocations: 345.2 kB / 347.7 MB, free: 14.87 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004948/0.1419, allocations: 52.59 kB / 347.8 MB, free: 14.82 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003475/0.1454, allocations: 2.714 MB / 350.5 MB, free: 12 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003577/0.1458, allocations: 0.7676 MB / 351.3 MB, free: 11.21 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001284/0.1459, allocations: 22.3 kB / 351.3 MB, free: 11.19 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001316/0.1461, allocations: 91.41 kB / 351.4 MB, free: 11.1 MB / 302.1 MB Notification: Performance of SimCode: time 7.21e-07/0.1461, allocations: 0 / 351.4 MB, free: 11.1 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03293/0.179, allocations: 6.293 MB / 357.7 MB, free: 4.742 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.647/9.826, allocations: 7.812 kB / 357.7 MB, free: 4.734 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