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.001471/0.001472, allocations: 103.7 kB / 17.63 MB, free: 5.543 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001696/0.001696, allocations: 208.6 kB / 18.58 MB, free: 4.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.438/1.438, allocations: 227.4 MB / 246.8 MB, free: 10.6 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001233/0.001233, allocations: 67.89 kB / 307.1 MB, free: 0.543 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1068/0.1081, allocations: 50.53 MB / 357.6 MB, free: 14.02 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.004253/0.1124, allocations: 3.018 MB / 360.6 MB, free: 10.98 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001382/0.1138, allocations: 0.7556 MB / 361.4 MB, free: 10.22 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002773/0.1141, allocations: 4 kB / 361.4 MB, free: 10.22 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002154/0.1143, allocations: 55.44 kB / 361.4 MB, free: 10.16 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00027/0.1146, allocations: 99.06 kB / 361.5 MB, free: 10.07 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003525/0.115, allocations: 107.8 kB / 361.6 MB, free: 9.961 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004818/0.1155, allocations: 410.2 kB / 362 MB, free: 9.559 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002239/0.1157, allocations: 111.1 kB / 362.1 MB, free: 9.453 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002814/0.116, allocations: 155.5 kB / 362.3 MB, free: 9.301 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002214/0.1162, allocations: 167.2 kB / 362.4 MB, free: 9.137 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.474e-05/0.1163, allocations: 32 kB / 362.5 MB, free: 9.105 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001009/0.1164, allocations: 40 kB / 362.5 MB, free: 9.066 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.029e-05/0.1165, allocations: 75.69 kB / 362.6 MB, free: 8.992 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001645/0.1167, allocations: 167.2 kB / 362.7 MB, free: 8.828 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004127/0.1171, allocations: 390.9 kB / 363.1 MB, free: 8.445 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.059e-06/0.1171, allocations: 4 kB / 363.1 MB, free: 8.441 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.1171, allocations: 0 / 363.1 MB, free: 8.441 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.301e-05/0.1171, allocations: 0 / 363.1 MB, free: 8.441 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.001084/0.1182, allocations: 0.6391 MB / 363.8 MB, free: 7.754 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.182e-05/0.1183, allocations: 19.91 kB / 363.8 MB, free: 7.734 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.138e-05/0.1184, allocations: 58.73 kB / 363.8 MB, free: 7.668 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001877/0.1186, allocations: 44.55 kB / 363.9 MB, free: 7.625 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003358/0.1189, allocations: 279.6 kB / 364.2 MB, free: 7.312 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.968e-05/0.1189, allocations: 16.94 kB / 364.2 MB, free: 7.297 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.461e-05/0.119, allocations: 28.38 kB / 364.2 MB, free: 7.27 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005103/0.1195, allocations: 264.9 kB / 364.5 MB, free: 7 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.948e-06/0.1195, allocations: 0 / 364.5 MB, free: 7 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.248e-05/0.1195, allocations: 19.98 kB / 364.5 MB, free: 6.98 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.907e-06/0.1196, allocations: 8 kB / 364.5 MB, free: 6.973 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000512/0.1201, allocations: 214.1 kB / 364.7 MB, free: 6.766 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001661/0.1217, allocations: 0.9755 MB / 365.7 MB, free: 5.719 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005167/0.1223, allocations: 299.7 kB / 366 MB, free: 5.398 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002253/0.1225, allocations: 120.7 kB / 366.1 MB, free: 5.277 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.83e-05/0.1225, allocations: 0 / 366.1 MB, free: 5.277 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.529e-05/0.1226, allocations: 34.56 kB / 366.1 MB, free: 5.234 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 1.353e-06/0.1226, allocations: 0 / 366.1 MB, free: 5.234 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001266/0.1238, allocations: 0.5626 MB / 366.7 MB, free: 4.625 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.109e-05/0.1239, allocations: 55.41 kB / 366.7 MB, free: 4.559 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002608/0.1242, allocations: 254.6 kB / 367 MB, free: 4.301 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.852e-05/0.1242, allocations: 33.7 kB / 367 MB, free: 4.262 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001307/0.1243, allocations: 187.8 kB / 367.2 MB, free: 4.07 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.65e-05/0.1244, allocations: 74.98 kB / 367.3 MB, free: 3.996 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.114e-05/0.1245, allocations: 41.95 kB / 367.3 MB, free: 3.945 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001473/0.1247, allocations: 330.8 kB / 367.6 MB, free: 3.613 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002136/0.1249, allocations: 76.42 kB / 367.7 MB, free: 3.539 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002231/0.1251, allocations: 107.5 kB / 367.8 MB, free: 3.426 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003922/0.1255, allocations: 188.2 kB / 368 MB, free: 3.234 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.286e-06/0.1255, allocations: 3.938 kB / 368 MB, free: 3.23 MB / 302.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006622/0.1262, allocations: 326.7 kB / 368.3 MB, free: 2.898 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.756e-05/0.1262, allocations: 6.969 kB / 368.3 MB, free: 2.895 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.686e-06/0.1262, allocations: 4 kB / 368.3 MB, free: 2.891 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002841/0.1265, allocations: 81.66 kB / 368.4 MB, free: 2.805 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001871/0.1267, allocations: 27.98 kB / 368.4 MB, free: 2.777 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1571/0.2838, allocations: 3.044 MB / 371.5 MB, free: 19.06 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002648/0.2841, allocations: 32.72 kB / 371.5 MB, free: 19.06 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.76e-05/0.2842, allocations: 6.562 kB / 371.5 MB, free: 19.06 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.0001447/0.2843, allocations: 143.6 kB / 371.7 MB, free: 18.95 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.95e-05/0.2844, allocations: 27.31 kB / 371.7 MB, free: 18.95 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.64e-05/0.2844, allocations: 34.59 kB / 371.7 MB, free: 18.94 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.929e-06/0.2844, allocations: 4.234 kB / 371.7 MB, free: 18.94 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.127e-06/0.2845, allocations: 4.281 kB / 371.7 MB, free: 18.94 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.729e-06/0.2845, allocations: 1.266 kB / 371.7 MB, free: 18.94 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001085/0.2856, allocations: 0.682 MB / 372.4 MB, free: 18.63 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.647e-06/0.2856, allocations: 1.188 kB / 372.4 MB, free: 18.63 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001385/0.2857, allocations: 28.47 kB / 372.5 MB, free: 18.63 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002027/0.2859, allocations: 71.67 kB / 372.5 MB, free: 18.61 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.579e-05/0.286, allocations: 8.344 kB / 372.5 MB, free: 18.61 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00175/0.2877, allocations: 3.04 MB / 375.6 MB, free: 15.93 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/0.2877, allocations: 4.812 kB / 375.6 MB, free: 15.93 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005857/0.2883, allocations: 383.5 kB / 375.9 MB, free: 15.77 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.951e-05/0.2884, allocations: 106.2 kB / 376.1 MB, free: 15.66 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.116e-05/0.2884, allocations: 3.906 kB / 376.1 MB, free: 15.66 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000261/0.2887, allocations: 34.2 kB / 376.1 MB, free: 15.66 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.402e-05/0.2888, allocations: 22.33 kB / 376.1 MB, free: 15.65 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.397e-05/0.2888, allocations: 5.078 kB / 376.1 MB, free: 15.65 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001784/0.289, allocations: 188.9 kB / 376.3 MB, free: 15.57 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.289, allocations: 6.781 kB / 376.3 MB, free: 15.57 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003778/0.2893, allocations: 96 kB / 376.4 MB, free: 15.56 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.0007249/0.2901, allocations: 0.9133 MB / 377.3 MB, free: 14.83 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007667/0.2909, allocations: 447.9 kB / 377.8 MB, free: 14.54 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.915e-06/0.2909, allocations: 1.094 kB / 377.8 MB, free: 14.54 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003978/0.2913, allocations: 355.6 kB / 378.1 MB, free: 14.27 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004347/0.2917, allocations: 43.09 kB / 378.1 MB, free: 14.26 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003334/0.2951, allocations: 2.735 MB / 380.9 MB, free: 12.43 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003276/0.2954, allocations: 0.7648 MB / 381.6 MB, free: 11.73 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001936/0.2956, allocations: 26.95 kB / 381.7 MB, free: 11.73 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001664/0.2958, allocations: 91.45 kB / 381.8 MB, free: 11.66 MB / 302.1 MB Notification: Performance of SimCode: time 6.81e-07/0.2958, allocations: 0 / 381.8 MB, free: 11.66 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03829/0.3341, allocations: 6.31 MB / 388.1 MB, free: 10.45 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.229/9.563, allocations: 8.703 kB / 388.1 MB, free: 10.45 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