Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.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: translateModel(Modelica.Electrical.Analog.Examples.Resistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|resistor.i|resistor.LossPower",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor") translateModel(Modelica.Electrical.Analog.Examples.Resistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|resistor.i|resistor.LossPower",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001734/0.001734, allocations: 106.7 kB / 17.21 MB, free: 6.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002879/0.002879, allocations: 209.7 kB / 18.14 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.546/1.546, allocations: 227.4 MB / 246.3 MB, free: 9.055 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001253/0.001254, allocations: 62.47 kB / 306.3 MB, free: 0.8164 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1109/0.1121, allocations: 50.54 MB / 356.8 MB, free: 14.29 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Resistor): time 0.004064/0.1163, allocations: 2.197 MB / 359 MB, free: 12.07 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001309/0.1176, allocations: 0.6157 MB / 359.6 MB, free: 11.45 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001448/0.1178, allocations: 4 kB / 359.6 MB, free: 11.45 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001477/0.118, allocations: 19.78 kB / 359.6 MB, free: 11.43 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000117/0.1181, allocations: 31.7 kB / 359.7 MB, free: 11.39 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002947/0.1184, allocations: 59.81 kB / 359.7 MB, free: 11.34 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002008/0.1186, allocations: 151.3 kB / 359.9 MB, free: 11.19 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001507/0.1188, allocations: 45.47 kB / 359.9 MB, free: 11.14 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001844/0.119, allocations: 63.77 kB / 360 MB, free: 11.07 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001309/0.1191, allocations: 67.64 kB / 360 MB, free: 11.01 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.825e-05/0.1191, allocations: 8 kB / 360 MB, free: 11 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.506e-05/0.1193, allocations: 12 kB / 360.1 MB, free: 10.99 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.074e-05/0.1193, allocations: 23.92 kB / 360.1 MB, free: 10.96 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.991e-05/0.1194, allocations: 67.66 kB / 360.1 MB, free: 10.9 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002039/0.1196, allocations: 171.7 kB / 360.3 MB, free: 10.73 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.1196, allocations: 0 / 360.3 MB, free: 10.73 MB / 302.1 MB Notification: Performance of FrontEnd: time 8.62e-07/0.1196, allocations: 0 / 360.3 MB, free: 10.73 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.973e-06/0.1196, allocations: 0 / 360.3 MB, free: 10.73 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: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0006281/0.1203, allocations: 445.8 kB / 360.8 MB, free: 10.25 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.198e-05/0.1203, allocations: 8.031 kB / 360.8 MB, free: 10.24 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000219/0.1205, allocations: 32.73 kB / 360.8 MB, free: 10.21 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002298/0.1208, allocations: 208 kB / 361 MB, free: 9.965 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.601e-05/0.1208, allocations: 12.61 kB / 361 MB, free: 9.953 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.911e-05/0.1208, allocations: 12.38 kB / 361 MB, free: 9.941 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002646/0.1211, allocations: 127.8 kB / 361.1 MB, free: 9.812 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.215e-05/0.1211, allocations: 0 / 361.1 MB, free: 9.812 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.888e-05/0.1211, allocations: 4 kB / 361.1 MB, free: 9.809 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.735e-06/0.1212, allocations: 4 kB / 361.2 MB, free: 9.805 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002068/0.1214, allocations: 76.66 kB / 361.2 MB, free: 9.73 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000926/0.1223, allocations: 0.5979 MB / 361.8 MB, free: 9.051 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003106/0.1226, allocations: 90.56 kB / 361.9 MB, free: 8.953 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.973e-05/0.1227, allocations: 40.91 kB / 362 MB, free: 8.91 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.764e-05/0.1228, allocations: 0 / 362 MB, free: 8.91 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.267e-05/0.1228, allocations: 30.56 kB / 362 MB, free: 8.871 MB / 302.1 MB Notification: Performance of pre-optimization done (n=6): time 1.222e-06/0.1228, allocations: 0 / 362 MB, free: 8.871 MB / 302.1 MB Notification: Performance of matching and sorting (n=6): time 0.0006931/0.1235, allocations: 255.4 kB / 362.2 MB, free: 8.594 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.233e-05/0.1235, allocations: 55.34 kB / 362.3 MB, free: 8.527 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001287/0.1237, allocations: 149.8 kB / 362.4 MB, free: 8.371 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.967e-05/0.1237, allocations: 25.7 kB / 362.5 MB, free: 8.34 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.461e-05/0.1238, allocations: 131.9 kB / 362.6 MB, free: 8.207 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.115e-05/0.1238, allocations: 23.73 kB / 362.6 MB, free: 8.184 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.188e-05/0.1239, allocations: 21.62 kB / 362.6 MB, free: 8.156 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.702e-05/0.124, allocations: 322.8 kB / 362.9 MB, free: 7.832 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.79e-05/0.124, allocations: 23.98 kB / 363 MB, free: 7.809 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.371e-05/0.1241, allocations: 50.44 kB / 363 MB, free: 7.75 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001326/0.1243, allocations: 70.55 kB / 363.1 MB, free: 7.672 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.265e-06/0.1243, allocations: 4 kB / 363.1 MB, free: 7.668 MB / 302.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.000285/0.1246, allocations: 134.2 kB / 363.2 MB, free: 7.527 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.819e-05/0.1246, allocations: 4 kB / 363.2 MB, free: 7.523 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.12e-06/0.1246, allocations: 0 / 363.2 MB, free: 7.523 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001842/0.1248, allocations: 40.89 kB / 363.3 MB, free: 7.48 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.342e-05/0.1248, allocations: 7.984 kB / 363.3 MB, free: 7.473 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001501/0.1264, allocations: 1.524 MB / 364.8 MB, free: 5.82 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.467e-05/0.1264, allocations: 4 kB / 364.8 MB, free: 5.816 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.658e-05/0.1265, allocations: 8 kB / 364.8 MB, free: 5.809 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 (5): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.000118/0.1266, allocations: 125.8 kB / 364.9 MB, free: 5.676 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.875e-05/0.1266, allocations: 19.75 kB / 365 MB, free: 5.656 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.591e-05/0.1267, allocations: 16.7 kB / 365 MB, free: 5.637 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.044e-06/0.1267, allocations: 0 / 365 MB, free: 5.637 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.483e-06/0.1267, allocations: 0 / 365 MB, free: 5.637 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.705e-06/0.1267, allocations: 4 kB / 365 MB, free: 5.633 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002134/0.1269, allocations: 205.6 kB / 365.2 MB, free: 5.383 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.804e-06/0.1269, allocations: 0 / 365.2 MB, free: 5.383 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.697e-05/0.127, allocations: 4 kB / 365.2 MB, free: 5.379 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001328/0.1271, allocations: 44.77 kB / 365.2 MB, free: 5.332 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.426e-06/0.1271, allocations: 0 / 365.2 MB, free: 5.332 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001193/0.1283, allocations: 1.51 MB / 366.7 MB, free: 3.691 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.1284, allocations: 3.984 kB / 366.7 MB, free: 3.688 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002964/0.1287, allocations: 216.2 kB / 366.9 MB, free: 3.457 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.878e-05/0.1287, allocations: 88.95 kB / 367 MB, free: 3.352 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.424e-05/0.1287, allocations: 0 / 367 MB, free: 3.352 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001071/0.1288, allocations: 16.05 kB / 367 MB, free: 3.336 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.05e-05/0.1289, allocations: 4 kB / 367.1 MB, free: 3.332 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.538e-06/0.1289, allocations: 7.984 kB / 367.1 MB, free: 3.324 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.658e-05/0.129, allocations: 110.6 kB / 367.2 MB, free: 3.219 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.129, allocations: 0 / 367.2 MB, free: 3.219 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003871/0.1294, allocations: 43.78 kB / 367.2 MB, free: 3.176 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 (2): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.000125/0.1296, allocations: 103.2 kB / 367.3 MB, free: 3.066 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003807/0.1299, allocations: 190.7 kB / 367.5 MB, free: 2.867 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.13, allocations: 0 / 367.5 MB, free: 2.867 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001988/0.1302, allocations: 158.6 kB / 367.7 MB, free: 2.699 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002655/0.1304, allocations: 15.92 kB / 367.7 MB, free: 2.684 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005569/0.131, allocations: 335.2 kB / 368 MB, free: 2.332 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002438/0.1313, allocations: 0.7118 MB / 368.7 MB, free: 1.594 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.43e-05/0.1313, allocations: 448 / 368.7 MB, free: 1.594 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.335e-05/0.1313, allocations: 23.42 kB / 368.7 MB, free: 1.57 MB / 302.1 MB Notification: Performance of SimCode: time 3.11e-07/0.1314, allocations: 0 / 368.7 MB, free: 1.57 MB / 302.1 MB Notification: Performance of Templates: time 0.004555/0.1359, allocations: 1.366 MB / 370.1 MB, free: 220 kB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/Resistor/Resistor.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches