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.001568/0.001568, allocations: 110.3 kB / 16.51 MB, free: 6.715 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.002024/0.002024, allocations: 190.5 kB / 17.43 MB, free: 6.066 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.485/1.485, allocations: 222.9 MB / 241.1 MB, free: 15.35 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001167/0.001167, allocations: 52.23 kB / 300.1 MB, free: 6.172 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09481/0.096, allocations: 49.43 MB / 349.5 MB, free: 4.727 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.004334/0.1004, allocations: 3.033 MB / 352.5 MB, free: 1.672 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001194/0.1016, allocations: 0.6816 MB / 353.2 MB, free: 0.9844 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002577/0.1019, allocations: 8 kB / 353.2 MB, free: 0.9766 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001899/0.1021, allocations: 43.69 kB / 353.3 MB, free: 0.9336 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002222/0.1023, allocations: 87.23 kB / 353.3 MB, free: 0.8477 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002661/0.1026, allocations: 75.92 kB / 353.4 MB, free: 0.7734 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000427/0.1031, allocations: 398.2 kB / 353.8 MB, free: 392 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001902/0.1033, allocations: 99.64 kB / 353.9 MB, free: 288 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002282/0.1035, allocations: 139.4 kB / 354 MB, free: 148 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001857/0.1037, allocations: 155.4 kB / 354.2 MB, free: 15.99 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.244e-05/0.1037, allocations: 20 kB / 354.2 MB, free: 15.97 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.378e-05/0.1038, allocations: 20 kB / 354.2 MB, free: 15.95 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.486e-05/0.1039, allocations: 55.7 kB / 354.3 MB, free: 15.9 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001591/0.104, allocations: 171.1 kB / 354.5 MB, free: 15.73 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003021/0.1043, allocations: 374.9 kB / 354.8 MB, free: 15.36 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.106e-06/0.1044, allocations: 0 / 354.8 MB, free: 15.36 MB / 302.1 MB Notification: Performance of FrontEnd: time 9.62e-07/0.1044, allocations: 0 / 354.8 MB, free: 15.36 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.867e-06/0.1044, allocations: 0 / 354.8 MB, free: 15.36 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.0009552/0.1053, allocations: 0.6275 MB / 355.5 MB, free: 14.69 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.181e-05/0.1054, allocations: 15.97 kB / 355.5 MB, free: 14.67 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.05e-05/0.1055, allocations: 62.72 kB / 355.5 MB, free: 14.6 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.17e-05/0.1055, allocations: 36.56 kB / 355.6 MB, free: 14.57 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002953/0.1058, allocations: 279.5 kB / 355.8 MB, free: 14.25 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.032e-05/0.1059, allocations: 20.92 kB / 355.9 MB, free: 14.23 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.632e-05/0.1059, allocations: 28.38 kB / 355.9 MB, free: 14.21 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004938/0.1064, allocations: 257 kB / 356.1 MB, free: 13.95 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.022e-05/0.1064, allocations: 0 / 356.1 MB, free: 13.95 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.971e-05/0.1065, allocations: 16 kB / 356.2 MB, free: 13.93 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.37e-05/0.1065, allocations: 8 kB / 356.2 MB, free: 13.93 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004661/0.107, allocations: 214.1 kB / 356.4 MB, free: 13.72 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001793/0.1088, allocations: 0.9716 MB / 357.3 MB, free: 12.68 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004969/0.1093, allocations: 303.7 kB / 357.6 MB, free: 12.35 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002132/0.1095, allocations: 110.6 kB / 357.7 MB, free: 12.24 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.01e-05/0.1095, allocations: 3.984 kB / 357.7 MB, free: 12.24 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.292e-05/0.1095, allocations: 38.56 kB / 357.8 MB, free: 12.19 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 1.403e-06/0.1096, allocations: 0 / 357.8 MB, free: 12.19 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.00121/0.1108, allocations: 0.5578 MB / 358.3 MB, free: 11.59 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.321e-05/0.1108, allocations: 55.41 kB / 358.4 MB, free: 11.52 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002335/0.1111, allocations: 258.6 kB / 358.7 MB, free: 11.26 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.234e-05/0.1111, allocations: 29.7 kB / 358.7 MB, free: 11.22 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001065/0.1112, allocations: 179.9 kB / 358.9 MB, free: 11.04 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.614e-05/0.1112, allocations: 78.89 kB / 358.9 MB, free: 10.96 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.691e-05/0.1113, allocations: 45.94 kB / 359 MB, free: 10.91 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001026/0.1114, allocations: 338.8 kB / 359.3 MB, free: 10.57 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001891/0.1116, allocations: 72.42 kB / 359.4 MB, free: 10.5 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002004/0.1118, allocations: 111.4 kB / 359.5 MB, free: 10.38 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003616/0.1122, allocations: 194.5 kB / 359.7 MB, free: 10.18 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.1122, allocations: 0 / 359.7 MB, free: 10.18 MB / 302.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006072/0.1128, allocations: 326.7 kB / 360 MB, free: 9.848 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.629e-05/0.1129, allocations: 4 kB / 360 MB, free: 9.844 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.34e-06/0.1129, allocations: 0 / 360 MB, free: 9.844 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002719/0.1131, allocations: 73.66 kB / 360.1 MB, free: 9.766 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000187/0.1133, allocations: 43.92 kB / 360.1 MB, free: 9.723 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002099/0.1155, allocations: 2.827 MB / 362.9 MB, free: 6.633 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001796/0.1156, allocations: 23.86 kB / 363 MB, free: 6.609 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.726e-05/0.1157, allocations: 12.06 kB / 363 MB, free: 6.598 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.0001353/0.1158, allocations: 141.8 kB / 363.1 MB, free: 6.449 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.497e-05/0.1159, allocations: 27.62 kB / 363.1 MB, free: 6.422 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.389e-05/0.1159, allocations: 26.17 kB / 363.2 MB, free: 6.398 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.843e-06/0.1159, allocations: 7.938 kB / 363.2 MB, free: 6.391 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.013e-06/0.1159, allocations: 3.938 kB / 363.2 MB, free: 6.387 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.157e-06/0.116, allocations: 7.984 kB / 363.2 MB, free: 6.379 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009545/0.1169, allocations: 0.6832 MB / 363.9 MB, free: 5.633 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.554e-06/0.1169, allocations: 0 / 363.9 MB, free: 5.633 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001294/0.1171, allocations: 27.97 kB / 363.9 MB, free: 5.605 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001905/0.1173, allocations: 85.59 kB / 364 MB, free: 5.516 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.466e-05/0.1173, allocations: 4.125 kB / 364 MB, free: 5.512 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001987/0.1193, allocations: 2.82 MB / 366.8 MB, free: 2.426 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.1193, allocations: 0 / 366.8 MB, free: 2.426 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005733/0.1199, allocations: 382.2 kB / 367.2 MB, free: 2.031 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.13e-05/0.12, allocations: 108.8 kB / 367.3 MB, free: 1.906 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.222e-05/0.12, allocations: 4 kB / 367.3 MB, free: 1.902 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002433/0.1202, allocations: 27.97 kB / 367.3 MB, free: 1.875 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.458e-05/0.1203, allocations: 23.91 kB / 367.3 MB, free: 1.852 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.537e-05/0.1203, allocations: 12 kB / 367.4 MB, free: 1.84 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001614/0.1205, allocations: 186 kB / 367.5 MB, free: 1.66 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1205, allocations: 0 / 367.5 MB, free: 1.66 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003602/0.1209, allocations: 95.75 kB / 367.6 MB, free: 1.566 MB / 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.0008465/0.1217, allocations: 0.9224 MB / 368.5 MB, free: 0.6133 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007171/0.1225, allocations: 449 kB / 369 MB, free: 152 kB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.1225, allocations: 0 / 369 MB, free: 152 kB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.1845/0.3069, allocations: 338.6 kB / 369.3 MB, free: 25.37 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001029/0.308, allocations: 54.17 kB / 369.4 MB, free: 25.36 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004085/0.3121, allocations: 2.816 MB / 372.2 MB, free: 23.86 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002713/0.3124, allocations: 0.7669 MB / 373 MB, free: 23.16 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001477/0.3125, allocations: 25.28 kB / 373 MB, free: 23.16 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001195/0.3127, allocations: 88.39 kB / 373.1 MB, free: 23.15 MB / 302.1 MB Notification: Performance of SimCode: time 2.003e-06/0.3127, allocations: 0 / 373.1 MB, free: 23.15 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.159/0.4717, allocations: 5.953 MB / 379 MB, free: 22.59 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001709/0.4719, allocations: 234.2 kB / 379.2 MB, free: 22.34 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.046/2.518, allocations: 1.25 kB / 379.2 MB, free: 22.34 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