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.001259/0.001259, allocations: 113.5 kB / 16.63 MB, free: 6.816 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.00121/0.00121, allocations: 190 kB / 17.55 MB, free: 5.93 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.458/1.458, allocations: 222.9 MB / 241.2 MB, free: 15.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001246/0.001247, allocations: 46.36 kB / 300.2 MB, free: 6.102 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09632/0.09758, allocations: 49.43 MB / 349.7 MB, free: 4.66 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.004981/0.1026, allocations: 3.036 MB / 352.7 MB, free: 1.602 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001347/0.104, allocations: 0.6855 MB / 353.4 MB, free: 0.9102 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002931/0.1043, allocations: 4 kB / 353.4 MB, free: 0.9062 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002304/0.1046, allocations: 35.69 kB / 353.4 MB, free: 0.8711 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003357/0.1049, allocations: 95.23 kB / 353.5 MB, free: 0.7773 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003433/0.1053, allocations: 75.92 kB / 353.6 MB, free: 0.7031 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006038/0.1059, allocations: 414.2 kB / 354 MB, free: 304 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002685/0.1062, allocations: 111.1 kB / 354.1 MB, free: 188 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000279/0.1065, allocations: 159.4 kB / 354.3 MB, free: 28 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002521/0.1067, allocations: 159.3 kB / 354.4 MB, free: 15.87 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.378e-05/0.1068, allocations: 32 kB / 354.5 MB, free: 15.84 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.793e-05/0.1069, allocations: 32 kB / 354.5 MB, free: 15.81 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.723e-05/0.1069, allocations: 71.75 kB / 354.6 MB, free: 15.74 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000167/0.1071, allocations: 171.1 kB / 354.7 MB, free: 15.57 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003854/0.1075, allocations: 390.8 kB / 355.1 MB, free: 15.19 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.1075, allocations: 0 / 355.1 MB, free: 15.19 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.1075, allocations: 4 kB / 355.1 MB, free: 15.18 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.368e-05/0.1076, allocations: 0 / 355.1 MB, free: 15.18 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.001143/0.1087, allocations: 0.6197 MB / 355.7 MB, free: 14.52 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.6e-05/0.1088, allocations: 19.89 kB / 355.8 MB, free: 14.5 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.595e-05/0.1089, allocations: 66.72 kB / 355.8 MB, free: 14.42 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.232e-05/0.1089, allocations: 36.56 kB / 355.9 MB, free: 14.39 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003318/0.1093, allocations: 279.5 kB / 356.1 MB, free: 14.07 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.189e-05/0.1093, allocations: 16.94 kB / 356.1 MB, free: 14.06 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.804e-05/0.1094, allocations: 28.38 kB / 356.2 MB, free: 14.03 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006199/0.11, allocations: 261 kB / 356.4 MB, free: 13.77 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.104e-05/0.11, allocations: 0 / 356.4 MB, free: 13.77 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.607e-05/0.11, allocations: 12 kB / 356.4 MB, free: 13.76 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.382e-05/0.1101, allocations: 12 kB / 356.4 MB, free: 13.75 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004947/0.1106, allocations: 214.1 kB / 356.7 MB, free: 13.54 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001783/0.1124, allocations: 0.9755 MB / 357.6 MB, free: 12.49 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005468/0.1129, allocations: 306.7 kB / 357.9 MB, free: 12.17 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002402/0.1132, allocations: 104.8 kB / 358 MB, free: 12.06 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.78e-05/0.1132, allocations: 4 kB / 358 MB, free: 12.06 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.79e-05/0.1132, allocations: 42.55 kB / 358.1 MB, free: 12.01 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 1.653e-06/0.1133, allocations: 0 / 358.1 MB, free: 12.01 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001339/0.1146, allocations: 0.5612 MB / 358.6 MB, free: 11.4 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.905e-05/0.1146, allocations: 59.34 kB / 358.7 MB, free: 11.33 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002765/0.1149, allocations: 254.6 kB / 358.9 MB, free: 11.07 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.169e-05/0.115, allocations: 33.7 kB / 359 MB, free: 11.03 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000135/0.1151, allocations: 179.9 kB / 359.2 MB, free: 10.85 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.383e-05/0.1152, allocations: 70.92 kB / 359.2 MB, free: 10.78 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001027/0.1153, allocations: 41.94 kB / 359.3 MB, free: 10.73 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001251/0.1154, allocations: 338.8 kB / 359.6 MB, free: 10.39 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001947/0.1156, allocations: 76.42 kB / 359.7 MB, free: 10.31 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002085/0.1158, allocations: 111.4 kB / 359.8 MB, free: 10.2 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003665/0.1162, allocations: 182.5 kB / 360 MB, free: 10.01 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.218e-06/0.1162, allocations: 0 / 360 MB, free: 10.01 MB / 302.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006293/0.1169, allocations: 334.6 kB / 360.3 MB, free: 9.668 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.602e-05/0.1169, allocations: 4 kB / 360.3 MB, free: 9.664 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.091e-06/0.1169, allocations: 0 / 360.3 MB, free: 9.664 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002738/0.1172, allocations: 73.67 kB / 360.4 MB, free: 9.586 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001852/0.1174, allocations: 39.91 kB / 360.4 MB, free: 9.547 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002357/0.1197, allocations: 3.047 MB / 363.4 MB, free: 6.223 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001957/0.12, allocations: 27.75 kB / 363.5 MB, free: 6.195 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.475e-05/0.12, allocations: 16.19 kB / 363.5 MB, free: 6.18 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.000161/0.1202, allocations: 141.8 kB / 363.6 MB, free: 6.031 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.693e-05/0.1202, allocations: 27.72 kB / 363.7 MB, free: 6.004 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.951e-05/0.1203, allocations: 30.19 kB / 363.7 MB, free: 5.98 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.144e-06/0.1203, allocations: 4.062 kB / 363.7 MB, free: 5.977 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.128e-06/0.1203, allocations: 7.984 kB / 363.7 MB, free: 5.969 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.875e-06/0.1203, allocations: 0 / 363.7 MB, free: 5.969 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009924/0.1213, allocations: 0.6847 MB / 364.4 MB, free: 5.223 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.556e-06/0.1213, allocations: 3.984 kB / 364.4 MB, free: 5.219 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001453/0.1215, allocations: 27.98 kB / 364.4 MB, free: 5.191 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001922/0.1217, allocations: 73.61 kB / 364.5 MB, free: 5.113 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.572e-05/0.1217, allocations: 4 kB / 364.5 MB, free: 5.109 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002297/0.124, allocations: 3.036 MB / 367.5 MB, free: 1.789 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.124, allocations: 0 / 367.5 MB, free: 1.789 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006241/0.1246, allocations: 390.4 kB / 367.9 MB, free: 1.387 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001751/0.1248, allocations: 108.8 kB / 368 MB, free: 1.262 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.79e-05/0.1249, allocations: 4 kB / 368 MB, free: 1.258 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002989/0.1252, allocations: 31.97 kB / 368 MB, free: 1.227 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.752e-05/0.1253, allocations: 27.89 kB / 368.1 MB, free: 1.199 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.702e-05/0.1253, allocations: 4 kB / 368.1 MB, free: 1.195 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001846/0.1255, allocations: 190 kB / 368.3 MB, free: 1.012 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1255, allocations: 0 / 368.3 MB, free: 1.012 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003898/0.1259, allocations: 91.84 kB / 368.4 MB, free: 0.9219 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.1522/0.2781, allocations: 0.9242 MB / 369.3 MB, free: 25.61 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001074/0.2792, allocations: 447.7 kB / 369.7 MB, free: 25.39 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.531e-06/0.2792, allocations: 0.6562 kB / 369.7 MB, free: 25.39 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004501/0.2797, allocations: 344.6 kB / 370.1 MB, free: 25.16 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005693/0.2803, allocations: 55.81 kB / 370.1 MB, free: 25.16 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003528/0.2838, allocations: 2.818 MB / 372.9 MB, free: 23.66 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002419/0.2841, allocations: 0.7638 MB / 373.7 MB, free: 22.96 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001345/0.2842, allocations: 23.86 kB / 373.7 MB, free: 22.96 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001053/0.2843, allocations: 87.23 kB / 373.8 MB, free: 22.95 MB / 302.1 MB Notification: Performance of SimCode: time 7.22e-07/0.2843, allocations: 0 / 373.8 MB, free: 22.95 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0236/0.3079, allocations: 6.136 MB / 379.9 MB, free: 22.24 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001536/0.3081, allocations: 237.9 kB / 380.2 MB, free: 21.98 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.055/2.363, allocations: 0 / 380.2 MB, free: 21.98 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