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.000985/0.000985, allocations: 91.72 kB / 16.65 MB, free: 6.59 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.0009897/0.0009895, allocations: 185.7 kB / 17.57 MB, free: 6.199 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.358/1.358, allocations: 223.3 MB / 241.6 MB, free: 14.37 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002981/0.0002981, allocations: 4 kB / 301.5 MB, free: 5.777 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1205/0.1208, allocations: 50.41 MB / 351.9 MB, free: 3.352 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.003234/0.1241, allocations: 2.658 MB / 354.6 MB, free: 0.6758 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001033/0.1252, allocations: 0.6778 MB / 355.3 MB, free: 15.99 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001355/0.1253, allocations: 4 kB / 355.3 MB, free: 15.99 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001582/0.1255, allocations: 43.69 kB / 355.3 MB, free: 15.95 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001712/0.1257, allocations: 83.25 kB / 355.4 MB, free: 15.86 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002578/0.126, allocations: 83.91 kB / 355.5 MB, free: 15.78 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004046/0.1264, allocations: 394.2 kB / 355.9 MB, free: 15.39 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002499/0.1266, allocations: 91.66 kB / 356 MB, free: 15.3 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001935/0.1268, allocations: 131.4 kB / 356.1 MB, free: 15.17 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002315/0.1271, allocations: 147.3 kB / 356.2 MB, free: 15.03 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.059e-05/0.1271, allocations: 20 kB / 356.3 MB, free: 15.01 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.21e-05/0.1272, allocations: 16 kB / 356.3 MB, free: 14.99 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.238e-05/0.1272, allocations: 55.75 kB / 356.3 MB, free: 14.94 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000154/0.1274, allocations: 184.8 kB / 356.5 MB, free: 14.75 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003131/0.1277, allocations: 358.8 kB / 356.9 MB, free: 14.4 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.989e-06/0.1277, allocations: 0 / 356.9 MB, free: 14.4 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.565e-06/0.1277, allocations: 0 / 356.9 MB, free: 14.4 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.013e-06/0.1277, allocations: 0 / 356.9 MB, free: 14.4 MB / 302.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.000959/0.1287, allocations: 0.5886 MB / 357.4 MB, free: 13.76 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.099e-05/0.1288, allocations: 12.03 kB / 357.5 MB, free: 13.75 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.352e-05/0.1289, allocations: 66.72 kB / 357.5 MB, free: 13.68 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.502e-05/0.1289, allocations: 36.56 kB / 357.6 MB, free: 13.64 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000306/0.1292, allocations: 279.5 kB / 357.8 MB, free: 13.33 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.23e-05/0.1293, allocations: 20.94 kB / 357.9 MB, free: 13.31 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.172e-05/0.1293, allocations: 28.38 kB / 357.9 MB, free: 13.28 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005278/0.1299, allocations: 269 kB / 358.1 MB, free: 13.01 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.109e-05/0.1299, allocations: 0 / 358.1 MB, free: 13.01 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.549e-05/0.1299, allocations: 15.98 kB / 358.2 MB, free: 13 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.042e-05/0.1299, allocations: 8 kB / 358.2 MB, free: 12.99 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000541/0.1305, allocations: 230.1 kB / 358.4 MB, free: 12.77 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001917/0.1324, allocations: 0.9872 MB / 359.4 MB, free: 11.71 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005537/0.133, allocations: 315.7 kB / 359.7 MB, free: 11.37 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002366/0.1332, allocations: 118 kB / 359.8 MB, free: 11.25 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.958e-05/0.1333, allocations: 4 kB / 359.8 MB, free: 11.25 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.573e-05/0.1333, allocations: 42.5 kB / 359.9 MB, free: 11.2 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 1.363e-06/0.1333, allocations: 0 / 359.9 MB, free: 11.2 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001429/0.1347, allocations: 0.5902 MB / 360.4 MB, free: 10.56 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.764e-05/0.1348, allocations: 55.41 kB / 360.5 MB, free: 10.5 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003382/0.1351, allocations: 266.5 kB / 360.8 MB, free: 10.23 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.576e-05/0.1352, allocations: 29.7 kB / 360.8 MB, free: 10.19 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001279/0.1353, allocations: 183.9 kB / 361 MB, free: 10 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001531/0.1355, allocations: 67 kB / 361 MB, free: 9.938 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.75e-05/0.1355, allocations: 25.72 kB / 361.1 MB, free: 9.906 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001639/0.1357, allocations: 334.8 kB / 361.4 MB, free: 9.57 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002296/0.1359, allocations: 84.42 kB / 361.5 MB, free: 9.484 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00022/0.1361, allocations: 116.4 kB / 361.6 MB, free: 9.363 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004698/0.1366, allocations: 202.5 kB / 361.8 MB, free: 9.156 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.405e-06/0.1366, allocations: 0 / 361.8 MB, free: 9.156 MB / 302.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006888/0.1373, allocations: 342.6 kB / 362.1 MB, free: 8.809 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.663e-05/0.1373, allocations: 8.062 kB / 362.1 MB, free: 8.801 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.953e-06/0.1374, allocations: 4 kB / 362.1 MB, free: 8.797 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002705/0.1376, allocations: 69.67 kB / 362.2 MB, free: 8.723 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001917/0.1378, allocations: 43.91 kB / 362.2 MB, free: 8.68 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002397/0.1402, allocations: 2.838 MB / 365.1 MB, free: 5.578 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001979/0.1405, allocations: 31.86 kB / 365.1 MB, free: 5.547 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.541e-05/0.1405, allocations: 8.062 kB / 365.1 MB, free: 5.539 MB / 302.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.0001862/0.1407, allocations: 141.8 kB / 365.2 MB, free: 5.391 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.537e-05/0.1407, allocations: 35.56 kB / 365.3 MB, free: 5.355 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.453e-05/0.1408, allocations: 26.17 kB / 365.3 MB, free: 5.332 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.827e-06/0.1408, allocations: 4 kB / 365.3 MB, free: 5.328 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.526e-06/0.1408, allocations: 3.938 kB / 365.3 MB, free: 5.324 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.935e-06/0.1408, allocations: 0 / 365.3 MB, free: 5.324 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001045/0.1419, allocations: 0.7027 MB / 366 MB, free: 4.559 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.495e-06/0.1419, allocations: 0 / 366 MB, free: 4.559 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001537/0.1421, allocations: 31.97 kB / 366.1 MB, free: 4.527 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001985/0.1423, allocations: 77.61 kB / 366.1 MB, free: 4.445 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.415e-05/0.1423, allocations: 8.125 kB / 366.1 MB, free: 4.438 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002633/0.1449, allocations: 2.824 MB / 369 MB, free: 1.348 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.145, allocations: 8.125 kB / 369 MB, free: 1.34 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000636/0.1456, allocations: 393.9 kB / 369.4 MB, free: 0.9336 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.549e-05/0.1457, allocations: 104.8 kB / 369.5 MB, free: 0.8125 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.757e-05/0.1457, allocations: 4 kB / 369.5 MB, free: 0.8086 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002686/0.146, allocations: 39.97 kB / 369.5 MB, free: 0.7695 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.225e-05/0.1461, allocations: 19.92 kB / 369.5 MB, free: 0.75 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.578e-05/0.1461, allocations: 7.984 kB / 369.5 MB, free: 0.7422 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001743/0.1463, allocations: 190 kB / 369.7 MB, free: 0.5586 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1463, allocations: 3.938 kB / 369.7 MB, free: 0.5547 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003758/0.1467, allocations: 95.75 kB / 369.8 MB, free: 472 kB / 302.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.1693/0.316, allocations: 0.927 MB / 370.7 MB, free: 23.58 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009871/0.317, allocations: 458.8 kB / 371.2 MB, free: 23.36 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 6.001e-06/0.317, allocations: 2.344 kB / 371.2 MB, free: 23.36 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004535/0.3175, allocations: 361.2 kB / 371.5 MB, free: 23.14 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004831/0.318, allocations: 50.75 kB / 371.6 MB, free: 23.14 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003633/0.3216, allocations: 2.877 MB / 374.5 MB, free: 21.63 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002326/0.3219, allocations: 0.7644 MB / 375.2 MB, free: 20.93 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001317/0.322, allocations: 23.11 kB / 375.2 MB, free: 20.93 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001284/0.3221, allocations: 88.77 kB / 375.3 MB, free: 20.93 MB / 302.1 MB Notification: Performance of SimCode: time 4.2e-07/0.3221, allocations: 1.5 kB / 375.3 MB, free: 20.93 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01863/0.3408, allocations: 5.829 MB / 381.2 MB, free: 20.39 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001563/0.341, allocations: 235.7 kB / 381.4 MB, free: 20.14 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.987/2.328, allocations: 3.938 kB / 381.4 MB, free: 20.13 MB / 302.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