Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowVariableResistor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ShowVariableResistor,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_ShowVariableResistor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ShowVariableResistor,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_ShowVariableResistor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001417/0.001416, allocations: 108.7 kB / 17.33 MB, free: 5.996 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001514/0.001514, allocations: 205.8 kB / 18.26 MB, free: 5.074 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.576/1.576, allocations: 227.4 MB / 246.4 MB, free: 10.75 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001384/0.001385, allocations: 64.03 kB / 306.6 MB, free: 0.832 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1247/0.1261, allocations: 50.53 MB / 357.1 MB, free: 14.3 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.004951/0.1311, allocations: 3.067 MB / 360.2 MB, free: 11.21 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001557/0.1327, allocations: 0.7479 MB / 360.9 MB, free: 10.46 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003089/0.1331, allocations: 8 kB / 360.9 MB, free: 10.45 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002309/0.1333, allocations: 35.69 kB / 360.9 MB, free: 10.42 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003019/0.1336, allocations: 95.23 kB / 361 MB, free: 10.32 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003843/0.134, allocations: 83.92 kB / 361.1 MB, free: 10.24 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005588/0.1346, allocations: 414.2 kB / 361.5 MB, free: 9.836 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000227/0.1348, allocations: 111 kB / 361.6 MB, free: 9.73 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003712/0.1352, allocations: 155.5 kB / 361.8 MB, free: 9.578 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002486/0.1355, allocations: 163.3 kB / 361.9 MB, free: 9.418 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.892e-05/0.1356, allocations: 32 kB / 362 MB, free: 9.387 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001707/0.1357, allocations: 36 kB / 362 MB, free: 9.352 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.352e-05/0.1358, allocations: 79.69 kB / 362.1 MB, free: 9.273 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001875/0.136, allocations: 175.1 kB / 362.3 MB, free: 9.102 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004863/0.1365, allocations: 390.9 kB / 362.6 MB, free: 8.719 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.528e-06/0.1365, allocations: 0 / 362.6 MB, free: 8.719 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.1365, allocations: 4 kB / 362.6 MB, free: 8.715 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.044e-05/0.1366, allocations: 0 / 362.6 MB, free: 8.715 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.001219/0.1378, allocations: 0.6352 MB / 363.3 MB, free: 8.031 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.687e-05/0.1378, allocations: 12.03 kB / 363.3 MB, free: 8.02 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.273e-05/0.1379, allocations: 66.73 kB / 363.4 MB, free: 7.945 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002167/0.1382, allocations: 48.48 kB / 363.4 MB, free: 7.898 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003399/0.1385, allocations: 275.6 kB / 363.7 MB, free: 7.59 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.397e-05/0.1385, allocations: 20.94 kB / 363.7 MB, free: 7.57 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.049e-05/0.1386, allocations: 28.38 kB / 363.7 MB, free: 7.543 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005614/0.1392, allocations: 257 kB / 364 MB, free: 7.285 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.228e-05/0.1392, allocations: 0 / 364 MB, free: 7.285 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.45e-05/0.1392, allocations: 19.98 kB / 364 MB, free: 7.266 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.995e-06/0.1392, allocations: 4 kB / 364 MB, free: 7.262 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004845/0.1397, allocations: 214.1 kB / 364.2 MB, free: 7.055 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001828/0.1416, allocations: 0.9794 MB / 365.2 MB, free: 6.004 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005423/0.1421, allocations: 299.6 kB / 365.5 MB, free: 5.684 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002204/0.1424, allocations: 104.8 kB / 365.6 MB, free: 5.578 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.488e-05/0.1424, allocations: 8 kB / 365.6 MB, free: 5.57 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.401e-05/0.1424, allocations: 38.56 kB / 365.6 MB, free: 5.523 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 3.065e-06/0.1424, allocations: 3.984 kB / 365.6 MB, free: 5.52 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.00135/0.1438, allocations: 0.5626 MB / 366.2 MB, free: 4.91 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.929e-05/0.1438, allocations: 55.41 kB / 366.2 MB, free: 4.844 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002874/0.1441, allocations: 258.6 kB / 366.5 MB, free: 4.578 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.949e-05/0.1442, allocations: 29.7 kB / 366.5 MB, free: 4.543 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001355/0.1443, allocations: 179.9 kB / 366.7 MB, free: 4.359 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.819e-05/0.1444, allocations: 74.98 kB / 366.8 MB, free: 4.285 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001048/0.1445, allocations: 41.95 kB / 366.8 MB, free: 4.234 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001575/0.1447, allocations: 338.8 kB / 367.1 MB, free: 3.895 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002393/0.1449, allocations: 76.42 kB / 367.2 MB, free: 3.82 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002129/0.1452, allocations: 107.5 kB / 367.3 MB, free: 3.707 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003931/0.1456, allocations: 196.1 kB / 367.5 MB, free: 3.508 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.1456, allocations: 0 / 367.5 MB, free: 3.508 MB / 302.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006678/0.1462, allocations: 330.7 kB / 367.8 MB, free: 3.172 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.988e-05/0.1463, allocations: 4 kB / 367.8 MB, free: 3.168 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.805e-06/0.1463, allocations: 0 / 367.8 MB, free: 3.168 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003141/0.1466, allocations: 73.67 kB / 367.9 MB, free: 3.09 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001927/0.1468, allocations: 39.91 kB / 368 MB, free: 3.051 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1981/0.345, allocations: 3.043 MB / 371 MB, free: 19.27 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003345/0.3454, allocations: 31.55 kB / 371 MB, free: 19.27 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.506e-05/0.3454, allocations: 6.828 kB / 371 MB, free: 19.27 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.0002033/0.3456, allocations: 144.7 kB / 371.2 MB, free: 19.15 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.186e-05/0.3457, allocations: 29.44 kB / 371.2 MB, free: 19.15 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.468e-05/0.3458, allocations: 32.56 kB / 371.2 MB, free: 19.15 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.238e-06/0.3458, allocations: 2.469 kB / 371.2 MB, free: 19.15 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.053e-05/0.3458, allocations: 2 kB / 371.2 MB, free: 19.15 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.203e-06/0.3458, allocations: 2.797 kB / 371.2 MB, free: 19.15 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001231/0.347, allocations: 0.6813 MB / 371.9 MB, free: 18.84 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.977e-06/0.3471, allocations: 0.75 kB / 371.9 MB, free: 18.84 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001384/0.3472, allocations: 27.7 kB / 372 MB, free: 18.84 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002221/0.3474, allocations: 72.41 kB / 372 MB, free: 18.83 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.733e-05/0.3475, allocations: 8.641 kB / 372 MB, free: 18.83 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002073/0.3495, allocations: 3.039 MB / 375.1 MB, free: 16.15 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/0.3496, allocations: 4.656 kB / 375.1 MB, free: 16.15 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007039/0.3503, allocations: 381.2 kB / 375.4 MB, free: 15.98 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.85e-05/0.3503, allocations: 102.4 kB / 375.5 MB, free: 15.88 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.335e-05/0.3504, allocations: 8.141 kB / 375.6 MB, free: 15.88 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002788/0.3507, allocations: 34.3 kB / 375.6 MB, free: 15.87 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001139/0.3508, allocations: 23.3 kB / 375.6 MB, free: 15.87 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.628e-05/0.3508, allocations: 9.281 kB / 375.6 MB, free: 15.87 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002386/0.3511, allocations: 192 kB / 375.8 MB, free: 15.79 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3511, allocations: 1.156 kB / 375.8 MB, free: 15.79 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004605/0.3515, allocations: 96.2 kB / 375.9 MB, free: 15.78 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.0008895/0.3524, allocations: 0.9164 MB / 376.8 MB, free: 15.09 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008658/0.3533, allocations: 445.8 kB / 377.3 MB, free: 14.79 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.536e-06/0.3533, allocations: 0.5625 kB / 377.3 MB, free: 14.79 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004544/0.3538, allocations: 352.1 kB / 377.6 MB, free: 14.53 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004862/0.3543, allocations: 57.84 kB / 377.7 MB, free: 14.5 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003653/0.358, allocations: 2.823 MB / 380.5 MB, free: 12.57 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002728/0.3582, allocations: 0.7656 MB / 381.2 MB, free: 11.88 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001553/0.3584, allocations: 18.16 kB / 381.3 MB, free: 11.88 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001331/0.3585, allocations: 94.38 kB / 381.4 MB, free: 11.8 MB / 302.1 MB Notification: Performance of SimCode: time 7.51e-07/0.3586, allocations: 0 / 381.4 MB, free: 11.8 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03039/0.389, allocations: 6.169 MB / 387.5 MB, free: 10.81 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001735/0.3892, allocations: 229.2 kB / 387.7 MB, free: 10.55 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.169/2.558, allocations: 3.938 kB / 387.8 MB, free: 10.55 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowVariableResistor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowVariableResistor_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_ShowVariableResistor_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_ShowVariableResistor.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Analog.Examples.ShowVariableResistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches