Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.DemonstrateLightning.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001573/0.001573, allocations: 77.7 kB / 21.25 MB, free: 0.5469 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001653/0.001653, allocations: 161.3 kB / 24.5 MB, free: 3.711 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.425/1.425, allocations: 177.1 MB / 204.7 MB, free: 8.957 MB / 190.1 MB " [Timeout remaining time 178] 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.DemonstrateLightning,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|currentSensor1.i|currentSensor2.i|integrator1.y|der1.y|integrator2.y|der2.y",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.DemonstrateLightning") translateModel(Modelica.Electrical.Analog.Examples.DemonstrateLightning,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|currentSensor1.i|currentSensor2.i|integrator1.y|der1.y|integrator2.y|der2.y",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.DemonstrateLightning") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001948/0.001948, allocations: 61.23 kB / 325.5 MB, free: 180 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1205/0.1224, allocations: 53.39 MB / 378.9 MB, free: 15.44 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemonstrateLightning): time 0.005199/0.1276, allocations: 2.705 MB / 381.6 MB, free: 12.72 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002094/0.1297, allocations: 0.8612 MB / 382.5 MB, free: 11.85 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001935/0.1299, allocations: 11.94 kB / 382.5 MB, free: 11.84 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000239/0.1302, allocations: 51.44 kB / 382.6 MB, free: 11.79 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003991/0.1306, allocations: 123.1 kB / 382.7 MB, free: 11.67 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000409/0.131, allocations: 231.6 kB / 382.9 MB, free: 11.44 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006273/0.1316, allocations: 0.5257 MB / 383.4 MB, free: 10.91 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002117/0.1318, allocations: 71.64 kB / 383.5 MB, free: 10.84 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002493/0.1321, allocations: 211.3 kB / 383.7 MB, free: 10.64 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003771/0.1324, allocations: 199.1 kB / 383.9 MB, free: 10.44 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.829e-05/0.1325, allocations: 51.94 kB / 384 MB, free: 10.39 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.547e-05/0.1326, allocations: 48 kB / 384 MB, free: 10.34 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001225/0.1327, allocations: 99.66 kB / 384.1 MB, free: 10.25 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002143/0.1329, allocations: 179.2 kB / 384.3 MB, free: 10.07 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006591/0.1336, allocations: 0.4903 MB / 384.8 MB, free: 9.578 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.132e-06/0.1336, allocations: 0 / 384.8 MB, free: 9.578 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.1336, allocations: 0 / 384.8 MB, free: 9.578 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.472e-05/0.1336, allocations: 4 kB / 384.8 MB, free: 9.574 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 58 * Number of variables: 58 Notification: Performance of Generate backend data structure: time 0.0018/0.1354, allocations: 0.6804 MB / 385.4 MB, free: 8.863 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.416e-05/0.1354, allocations: 11.98 kB / 385.5 MB, free: 8.852 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001014/0.1355, allocations: 40.7 kB / 385.5 MB, free: 8.812 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005931/0.1361, allocations: 273.4 kB / 385.8 MB, free: 8.52 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001687/0.1363, allocations: 135.8 kB / 385.9 MB, free: 8.363 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.087e-05/0.1364, allocations: 28.38 kB / 385.9 MB, free: 8.336 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005604/0.1369, allocations: 368.2 kB / 386.3 MB, free: 7.926 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.965e-05/0.1369, allocations: 3.953 kB / 386.3 MB, free: 7.922 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.019e-05/0.137, allocations: 15.94 kB / 386.3 MB, free: 7.906 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.525e-05/0.137, allocations: 7.984 kB / 386.3 MB, free: 7.898 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003608/0.1374, allocations: 165.2 kB / 386.5 MB, free: 7.738 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002854/0.1402, allocations: 1.291 MB / 387.8 MB, free: 6.387 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000217/0.1404, allocations: 97.17 kB / 387.9 MB, free: 6.273 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000113/0.1405, allocations: 49.83 kB / 387.9 MB, free: 6.219 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.207e-05/0.1406, allocations: 4 kB / 387.9 MB, free: 6.215 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.714e-05/0.1406, allocations: 34.55 kB / 387.9 MB, free: 6.172 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.413e-06/0.1406, allocations: 0 / 387.9 MB, free: 6.172 MB / 350.1 MB Notification: Performance of matching and sorting (n=13): time 0.00311/0.1437, allocations: 0.9254 MB / 388.9 MB, free: 5.184 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.913e-05/0.1438, allocations: 110.8 kB / 389 MB, free: 5.051 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005598/0.1443, allocations: 324.3 kB / 389.3 MB, free: 4.727 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.962e-05/0.1444, allocations: 33.7 kB / 389.3 MB, free: 4.688 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001822/0.1446, allocations: 208.4 kB / 389.5 MB, free: 4.477 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.04e-05/0.1446, allocations: 51.58 kB / 389.6 MB, free: 4.426 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000148/0.1448, allocations: 77.61 kB / 389.7 MB, free: 4.344 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001785/0.1449, allocations: 338.8 kB / 390 MB, free: 4.004 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003491/0.1453, allocations: 155.9 kB / 390.1 MB, free: 3.852 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004584/0.1458, allocations: 274.1 kB / 390.4 MB, free: 3.539 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006751/0.1464, allocations: 353.9 kB / 390.8 MB, free: 3.16 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.1464, allocations: 0 / 390.8 MB, free: 3.16 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.009143/0.1556, allocations: 1.314 MB / 392.1 MB, free: 1.832 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.826e-05/0.1556, allocations: 4 kB / 392.1 MB, free: 1.828 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.089e-05/0.1556, allocations: 8.062 kB / 392.1 MB, free: 1.82 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01059/0.1662, allocations: 1.149 MB / 393.2 MB, free: 0.6641 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004569/0.1667, allocations: 71.88 kB / 393.3 MB, free: 0.5938 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01125/0.1779, allocations: 4.98 MB / 398.3 MB, free: 11.41 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005698/0.1785, allocations: 35.97 kB / 398.3 MB, free: 11.37 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.375e-05/0.1785, allocations: 15.98 kB / 398.3 MB, free: 11.36 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 2 (integrator2.local_reset,integrator1.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * Single equations (assignments): 25 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(4,1), (4,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0002256/0.1787, allocations: 153.7 kB / 398.5 MB, free: 11.2 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.818e-05/0.1788, allocations: 31.8 kB / 398.5 MB, free: 11.16 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.458e-05/0.1789, allocations: 25.97 kB / 398.5 MB, free: 11.14 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.793e-06/0.1789, allocations: 0 / 398.5 MB, free: 11.14 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.1789, allocations: 3.984 kB / 398.5 MB, free: 11.13 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.977e-06/0.1789, allocations: 0 / 398.5 MB, free: 11.13 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00112/0.18, allocations: 0.6261 MB / 399.2 MB, free: 10.47 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.926e-06/0.18, allocations: 4.094 kB / 399.2 MB, free: 10.46 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003561/0.1804, allocations: 59.81 kB / 399.2 MB, free: 10.41 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.545e-06/0.1804, allocations: 0 / 399.2 MB, free: 10.41 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.405e-05/0.1804, allocations: 7.984 kB / 399.2 MB, free: 10.4 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.824e-06/0.1804, allocations: 3.938 kB / 399.2 MB, free: 10.39 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.1804, allocations: 0 / 399.2 MB, free: 10.39 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008918/0.1813, allocations: 0.518 MB / 399.8 MB, free: 9.859 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.39e-05/0.1813, allocations: 31.83 kB / 399.8 MB, free: 9.828 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.634e-05/0.1814, allocations: 0 / 399.8 MB, free: 9.828 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003887/0.1818, allocations: 31.97 kB / 399.8 MB, free: 9.797 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.792e-05/0.1818, allocations: 11.97 kB / 399.8 MB, free: 9.785 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.267e-05/0.1818, allocations: 11.92 kB / 399.8 MB, free: 9.773 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000236/0.1821, allocations: 219.1 kB / 400.1 MB, free: 9.562 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1821, allocations: 64 / 400.1 MB, free: 9.562 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005186/0.1826, allocations: 104 kB / 400.2 MB, free: 9.461 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (integrator2.y,integrator1.y) * 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): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001544/0.1828, allocations: 103.2 kB / 400.3 MB, free: 9.352 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002161/0.1849, allocations: 0.7237 MB / 401 MB, free: 8.602 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.975e-06/0.1849, allocations: 3.938 kB / 401 MB, free: 8.598 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002429/0.1852, allocations: 96 kB / 401.1 MB, free: 8.504 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005809/0.1857, allocations: 82.55 kB / 401.2 MB, free: 8.43 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001496/0.1872, allocations: 0.6061 MB / 401.8 MB, free: 7.797 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001996/0.1874, allocations: 169.1 kB / 401.9 MB, free: 7.609 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001693/0.1876, allocations: 39.08 kB / 402 MB, free: 7.574 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001022/0.1877, allocations: 32.47 kB / 402 MB, free: 7.543 MB / 366.1 MB Notification: Performance of SimCode: time 5.41e-07/0.1877, allocations: 0 / 402 MB, free: 7.543 MB / 366.1 MB Notification: Performance of Templates: time 0.01877/0.2065, allocations: 9.918 MB / 411.9 MB, free: 13.69 MB / 382.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.DemonstrateLightning.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.DemonstrateLightning.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.DemonstrateLightning.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.DemonstrateLightning.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.DemonstrateLightning.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.DemonstrateLightning -abortSlowSimulation -alarm=480 -s ida -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.DemonstrateLightning.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.DemonstrateLightning_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/DemonstrateLightning/DemonstrateLightning.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.DemonstrateLightning.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.027774713002145]