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.001344/0.001344, allocations: 111.1 kB / 20.44 MB, free: 1.062 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.001489/0.001489, allocations: 213.6 kB / 23.73 MB, free: 4.164 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.47/1.47, allocations: 230.5 MB / 257.4 MB, free: 7.785 MB / 206.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: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.DemonstrateLightning,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_DemonstrateLightning",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.DemonstrateLightning,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_DemonstrateLightning",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001916/0.001916, allocations: 71.89 kB / 377.7 MB, free: 2.793 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2509/0.2529, allocations: 53.4 MB / 431.2 MB, free: 6.574 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemonstrateLightning): time 0.004198/0.2571, allocations: 2.698 MB / 433.9 MB, free: 3.871 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001564/0.2586, allocations: 0.8728 MB / 434.7 MB, free: 2.992 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001589/0.2588, allocations: 8 kB / 434.7 MB, free: 2.984 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001776/0.259, allocations: 47.45 kB / 434.8 MB, free: 2.938 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003385/0.2593, allocations: 131.1 kB / 434.9 MB, free: 2.809 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003668/0.2597, allocations: 223.6 kB / 435.1 MB, free: 2.59 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005552/0.2602, allocations: 0.5296 MB / 435.7 MB, free: 2.059 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001915/0.2604, allocations: 75.58 kB / 435.7 MB, free: 1.984 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002349/0.2607, allocations: 207.3 kB / 435.9 MB, free: 1.781 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003046/0.261, allocations: 207.1 kB / 436.1 MB, free: 1.578 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.647e-05/0.261, allocations: 44 kB / 436.2 MB, free: 1.535 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.152e-05/0.2611, allocations: 48 kB / 436.2 MB, free: 1.488 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.26e-05/0.2612, allocations: 103.7 kB / 436.3 MB, free: 1.387 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001694/0.2614, allocations: 175.2 kB / 436.5 MB, free: 1.215 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005264/0.2619, allocations: 0.4924 MB / 437 MB, free: 0.7227 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.2619, allocations: 0 / 437 MB, free: 0.7227 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.2619, allocations: 0 / 437 MB, free: 0.7227 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.765e-06/0.2619, allocations: 0 / 437 MB, free: 0.7227 MB / 334.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.001632/0.2635, allocations: 0.6765 MB / 437.7 MB, free: 16 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.68e-05/0.2636, allocations: 15.98 kB / 437.7 MB, free: 0 / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.006e-05/0.2637, allocations: 62.72 kB / 437.7 MB, free: 15.93 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.337e-05/0.2638, allocations: 40.7 kB / 437.8 MB, free: 15.89 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005469/0.2643, allocations: 273.3 kB / 438 MB, free: 15.6 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001663/0.2645, allocations: 139.8 kB / 438.2 MB, free: 15.44 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.036e-05/0.2646, allocations: 28.38 kB / 438.2 MB, free: 15.41 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005508/0.2651, allocations: 360 kB / 438.6 MB, free: 15.01 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.185e-05/0.2651, allocations: 7.891 kB / 438.6 MB, free: 15 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.603e-05/0.2651, allocations: 12 kB / 438.6 MB, free: 14.99 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.162e-05/0.2652, allocations: 8 kB / 438.6 MB, free: 14.98 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003643/0.2655, allocations: 161.2 kB / 438.7 MB, free: 14.83 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002928/0.2685, allocations: 1.333 MB / 440.1 MB, free: 13.42 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002349/0.2687, allocations: 97.19 kB / 440.2 MB, free: 13.3 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001162/0.2688, allocations: 49.81 kB / 440.2 MB, free: 13.25 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.831e-05/0.2688, allocations: 4 kB / 440.2 MB, free: 13.25 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.026e-05/0.2689, allocations: 38.56 kB / 440.3 MB, free: 13.2 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.984e-06/0.2689, allocations: 4 kB / 440.3 MB, free: 13.2 MB / 350.1 MB Notification: Performance of matching and sorting (n=13): time 0.003124/0.272, allocations: 0.921 MB / 441.2 MB, free: 12.21 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.512e-05/0.2721, allocations: 118.7 kB / 441.3 MB, free: 12.07 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003924/0.2725, allocations: 320.5 kB / 441.6 MB, free: 11.75 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.217e-05/0.2726, allocations: 33.7 kB / 441.7 MB, free: 11.71 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001772/0.2727, allocations: 208.4 kB / 441.9 MB, free: 11.5 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.948e-05/0.2728, allocations: 47.64 kB / 441.9 MB, free: 11.46 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001548/0.2729, allocations: 77.59 kB / 442 MB, free: 11.38 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001731/0.2731, allocations: 342.8 kB / 442.3 MB, free: 11.03 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003537/0.2735, allocations: 151.9 kB / 442.5 MB, free: 10.88 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000444/0.2739, allocations: 280.5 kB / 442.7 MB, free: 10.57 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007024/0.2746, allocations: 354 kB / 443.1 MB, free: 10.18 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.593e-06/0.2746, allocations: 4 kB / 443.1 MB, free: 10.18 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.009075/0.2837, allocations: 1.306 MB / 444.4 MB, free: 8.859 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.294e-05/0.2837, allocations: 4 kB / 444.4 MB, free: 8.855 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.268e-05/0.2837, allocations: 4.078 kB / 444.4 MB, free: 8.852 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01048/0.2942, allocations: 1.149 MB / 445.5 MB, free: 7.695 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004638/0.2947, allocations: 71.86 kB / 445.6 MB, free: 7.625 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01111/0.3058, allocations: 5.032 MB / 450.6 MB, free: 2.363 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005737/0.3064, allocations: 35.92 kB / 450.7 MB, free: 2.328 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.124e-05/0.3064, allocations: 19.97 kB / 450.7 MB, free: 2.309 MB / 350.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.0002009/0.3066, allocations: 150.6 kB / 450.9 MB, free: 2.152 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.732e-05/0.3067, allocations: 31.91 kB / 450.9 MB, free: 2.121 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.761e-05/0.3067, allocations: 30.55 kB / 450.9 MB, free: 2.09 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.07e-06/0.3067, allocations: 4 kB / 450.9 MB, free: 2.086 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.854e-06/0.3067, allocations: 3.938 kB / 450.9 MB, free: 2.082 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.725e-06/0.3067, allocations: 7.922 kB / 450.9 MB, free: 2.074 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00112/0.3079, allocations: 0.6647 MB / 451.6 MB, free: 1.359 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.575e-06/0.3079, allocations: 0 / 451.6 MB, free: 1.359 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003589/0.3082, allocations: 55.88 kB / 451.6 MB, free: 1.305 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.379e-06/0.3082, allocations: 3.938 kB / 451.7 MB, free: 1.301 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.116e-05/0.3083, allocations: 7.984 kB / 451.7 MB, free: 1.293 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.3083, allocations: 0 / 451.7 MB, free: 1.293 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.233e-06/0.3083, allocations: 0 / 451.7 MB, free: 1.293 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008602/0.3091, allocations: 0.5181 MB / 452.2 MB, free: 0.7578 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.504e-05/0.3092, allocations: 27.8 kB / 452.2 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.601e-05/0.3092, allocations: 7.938 kB / 452.2 MB, free: 0.7227 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004004/0.3096, allocations: 32.03 kB / 452.2 MB, free: 0.6914 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.629e-05/0.3097, allocations: 11.97 kB / 452.3 MB, free: 0.6797 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.034e-05/0.3097, allocations: 7.984 kB / 452.3 MB, free: 0.6719 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002662/0.31, allocations: 231.1 kB / 452.5 MB, free: 460 kB / 350.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.31, allocations: 0 / 452.5 MB, free: 460 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005053/0.3105, allocations: 104 kB / 452.6 MB, free: 356 kB / 350.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.001218/0.3117, allocations: 1.051 MB / 453.6 MB, free: 15.27 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002041/0.3137, allocations: 0.7348 MB / 454.4 MB, free: 14.51 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.697e-06/0.3137, allocations: 4.062 kB / 454.4 MB, free: 14.5 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002731/0.314, allocations: 99.86 kB / 454.5 MB, free: 14.41 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005941/0.3146, allocations: 67.48 kB / 454.5 MB, free: 14.34 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02173/0.3363, allocations: 5.211 MB / 459.8 MB, free: 8.973 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002575/0.3366, allocations: 169.1 kB / 459.9 MB, free: 8.789 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002842/0.3369, allocations: 39.19 kB / 460 MB, free: 8.75 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002325/0.3371, allocations: 103.4 kB / 460.1 MB, free: 8.648 MB / 366.1 MB Notification: Performance of SimCode: time 1.302e-06/0.3371, allocations: 0 / 460.1 MB, free: 8.648 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04949/0.3866, allocations: 13.65 MB / 473.7 MB, free: 11.16 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.68/13.06, allocations: 8 kB / 473.7 MB, free: 11.15 MB / 382.1 MB " [Timeout remaining time 647] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.DemonstrateLightning_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_DemonstrateLightning_fmu --startTime=0 --stopTime=0.001 --stepSize=1e-07 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_DemonstrateLightning.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.DemonstrateLightning.pipe 2>&1) [Timeout 52.5] 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: 15.75330990133807]