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.001228/0.001228, allocations: 104.3 kB / 17.16 MB, free: 6.316 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.001098/0.001098, allocations: 190 kB / 18.07 MB, free: 5.414 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.361/1.361, allocations: 205.1 MB / 223.9 MB, free: 12.47 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.001135/0.001135, allocations: 55.92 kB / 280.1 MB, free: 3.496 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1064/0.1075, allocations: 46.62 MB / 326.7 MB, free: 4.809 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.004132/0.1117, allocations: 3.006 MB / 329.7 MB, free: 1.777 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001065/0.1128, allocations: 0.7138 MB / 330.4 MB, free: 1.055 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001236/0.113, allocations: 7.938 kB / 330.4 MB, free: 1.047 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000181/0.1132, allocations: 35.69 kB / 330.5 MB, free: 1.012 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001523/0.1133, allocations: 91.25 kB / 330.5 MB, free: 0.9219 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000226/0.1136, allocations: 75.92 kB / 330.6 MB, free: 0.8477 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003563/0.1139, allocations: 390.2 kB / 331 MB, free: 476 kB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001868/0.1141, allocations: 95.66 kB / 331.1 MB, free: 384 kB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000184/0.1143, allocations: 143.4 kB / 331.2 MB, free: 240 kB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001638/0.1145, allocations: 159.2 kB / 331.4 MB, free: 80 kB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 4.465e-05/0.1145, allocations: 23.94 kB / 331.4 MB, free: 56 kB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.551e-05/0.1146, allocations: 24 kB / 331.4 MB, free: 32 kB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 7.132e-05/0.1147, allocations: 55.84 kB / 331.5 MB, free: 15.97 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000155/0.1148, allocations: 159.2 kB / 331.6 MB, free: 15.82 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003089/0.1151, allocations: 366.9 kB / 332 MB, free: 15.46 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.499e-06/0.1152, allocations: 0 / 332 MB, free: 15.46 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.1152, allocations: 0 / 332 MB, free: 15.46 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.021e-06/0.1152, allocations: 4 kB / 332 MB, free: 15.46 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.0009349/0.1161, allocations: 0.6314 MB / 332.6 MB, free: 14.78 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.001e-05/0.1162, allocations: 12.03 kB / 332.7 MB, free: 14.77 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.742e-05/0.1162, allocations: 62.73 kB / 332.7 MB, free: 14.7 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.731e-05/0.1163, allocations: 44.48 kB / 332.8 MB, free: 14.65 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003084/0.1166, allocations: 279.5 kB / 333 MB, free: 14.34 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.236e-05/0.1167, allocations: 20.94 kB / 333 MB, free: 14.32 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.668e-05/0.1167, allocations: 28.38 kB / 333.1 MB, free: 14.29 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005428/0.1173, allocations: 261 kB / 333.3 MB, free: 14.03 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.014e-05/0.1173, allocations: 3.938 kB / 333.3 MB, free: 14.03 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.937e-05/0.1173, allocations: 12 kB / 333.3 MB, free: 14.02 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.137e-06/0.1173, allocations: 8 kB / 333.4 MB, free: 14.01 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004611/0.1178, allocations: 218.1 kB / 333.6 MB, free: 13.8 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001542/0.1193, allocations: 0.9794 MB / 334.5 MB, free: 12.75 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005173/0.1199, allocations: 291.8 kB / 334.8 MB, free: 12.43 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002098/0.1201, allocations: 108.8 kB / 334.9 MB, free: 12.32 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.158e-05/0.1201, allocations: 4 kB / 334.9 MB, free: 12.32 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.202e-05/0.1202, allocations: 42.5 kB / 335 MB, free: 12.27 MB / 286.1 MB Notification: Performance of pre-optimization done (n=21): time 1.473e-06/0.1202, allocations: 0 / 335 MB, free: 12.27 MB / 286.1 MB Notification: Performance of matching and sorting (n=21): time 0.001268/0.1214, allocations: 0.5559 MB / 335.5 MB, free: 11.66 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.313e-05/0.1215, allocations: 51.41 kB / 335.6 MB, free: 11.6 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002483/0.1217, allocations: 258.6 kB / 335.8 MB, free: 11.34 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.385e-05/0.1218, allocations: 33.7 kB / 335.9 MB, free: 11.3 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001235/0.1219, allocations: 183.9 kB / 336.1 MB, free: 11.11 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.873e-05/0.122, allocations: 70.91 kB / 336.1 MB, free: 11.04 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.153e-05/0.1221, allocations: 41.95 kB / 336.2 MB, free: 10.99 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001309/0.1222, allocations: 338.8 kB / 336.5 MB, free: 10.65 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001923/0.1224, allocations: 72.42 kB / 336.6 MB, free: 10.58 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002032/0.1226, allocations: 115.4 kB / 336.7 MB, free: 10.46 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003707/0.123, allocations: 190.4 kB / 336.9 MB, free: 10.27 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.454e-06/0.123, allocations: 0 / 336.9 MB, free: 10.27 MB / 286.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006128/0.1236, allocations: 326.8 kB / 337.2 MB, free: 9.934 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.697e-05/0.1236, allocations: 4 kB / 337.2 MB, free: 9.93 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.485e-06/0.1237, allocations: 11.88 kB / 337.2 MB, free: 9.918 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000276/0.1239, allocations: 69.67 kB / 337.3 MB, free: 9.844 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001847/0.1241, allocations: 39.97 kB / 337.3 MB, free: 9.805 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002393/0.1265, allocations: 2.831 MB / 340.1 MB, free: 6.707 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001923/0.1267, allocations: 27.86 kB / 340.2 MB, free: 6.68 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.959e-05/0.1268, allocations: 7.984 kB / 340.2 MB, free: 6.672 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.0001639/0.1269, allocations: 145.8 kB / 340.3 MB, free: 6.52 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.501e-05/0.127, allocations: 27.72 kB / 340.3 MB, free: 6.492 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.588e-05/0.1271, allocations: 30.17 kB / 340.4 MB, free: 6.465 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.486e-06/0.1271, allocations: 4 kB / 340.4 MB, free: 6.461 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.25e-05/0.1271, allocations: 3.938 kB / 340.4 MB, free: 6.457 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.206e-06/0.1271, allocations: 0 / 340.4 MB, free: 6.457 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009957/0.1281, allocations: 0.684 MB / 341.1 MB, free: 5.711 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.438e-06/0.1281, allocations: 0 / 341.1 MB, free: 5.711 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001256/0.1282, allocations: 28.09 kB / 341.1 MB, free: 5.684 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001964/0.1284, allocations: 85.61 kB / 341.2 MB, free: 5.594 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.264e-05/0.1285, allocations: 0 / 341.2 MB, free: 5.594 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002119/0.1306, allocations: 2.827 MB / 344 MB, free: 2.504 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.283e-06/0.1306, allocations: 0 / 344 MB, free: 2.504 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005783/0.1312, allocations: 380.9 kB / 344.4 MB, free: 2.109 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.608e-05/0.1313, allocations: 104.8 kB / 344.5 MB, free: 1.988 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.809e-05/0.1313, allocations: 8 kB / 344.5 MB, free: 1.98 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002348/0.1316, allocations: 31.97 kB / 344.5 MB, free: 1.949 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.264e-05/0.1316, allocations: 27.84 kB / 344.5 MB, free: 1.922 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.496e-05/0.1317, allocations: 4 kB / 344.5 MB, free: 1.918 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001645/0.1318, allocations: 190 kB / 344.7 MB, free: 1.73 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1318, allocations: 4 kB / 344.7 MB, free: 1.727 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003714/0.1322, allocations: 91.84 kB / 344.8 MB, free: 1.637 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.0008852/0.1331, allocations: 0.9127 MB / 345.7 MB, free: 0.6875 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0007172/0.1338, allocations: 445.2 kB / 346.2 MB, free: 232 kB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 5.731e-06/0.1339, allocations: 7.938 kB / 346.2 MB, free: 224 kB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004084/0.1343, allocations: 345.3 kB / 346.5 MB, free: 15.85 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004631/0.1347, allocations: 48.55 kB / 346.6 MB, free: 15.8 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003584/0.1383, allocations: 2.816 MB / 349.4 MB, free: 12.89 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003333/0.1387, allocations: 0.7639 MB / 350.1 MB, free: 12.09 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000121/0.1388, allocations: 22.3 kB / 350.2 MB, free: 12.07 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001331/0.139, allocations: 91.41 kB / 350.3 MB, free: 11.98 MB / 302.1 MB Notification: Performance of SimCode: time 5.82e-07/0.139, allocations: 0 / 350.3 MB, free: 11.98 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0425/0.1815, allocations: 5.95 MB / 356.2 MB, free: 6 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002307/0.1818, allocations: 233.1 kB / 356.4 MB, free: 5.742 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.983/2.165, allocations: 3.938 kB / 356.4 MB, free: 5.738 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","../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches