Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.Oscillator.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.002027/0.002027, 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.002503/0.002503, allocations: 213.2 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.444/1.444, allocations: 230.5 MB / 257.4 MB, free: 7.793 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.Spice3.Examples.Oscillator,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_Oscillator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Oscillator,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_Oscillator",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001936/0.001936, allocations: 63.91 kB / 377.7 MB, free: 2.812 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2298/0.2317, allocations: 53.41 MB / 431.1 MB, free: 6.441 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Oscillator): time 0.008002/0.2397, allocations: 6.485 MB / 437.6 MB, free: 15.93 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01221/0.2519, allocations: 9.324 MB / 446.9 MB, free: 6.566 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008472/0.2528, allocations: 122.6 kB / 447.1 MB, free: 6.445 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001603/0.2544, allocations: 0.6441 MB / 447.7 MB, free: 5.797 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003007/0.2574, allocations: 1.206 MB / 448.9 MB, free: 4.582 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001618/0.259, allocations: 0.6797 MB / 449.6 MB, free: 3.898 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00381/0.2628, allocations: 2.578 MB / 452.2 MB, free: 1.312 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003577/0.2631, allocations: 168.4 kB / 452.3 MB, free: 1.129 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000711/0.2639, allocations: 0.5171 MB / 452.8 MB, free: 0.6094 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006353/0.2645, allocations: 0.5043 MB / 453.3 MB, free: 104 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001047/0.2646, allocations: 56 kB / 453.4 MB, free: 48 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001526/0.2661, allocations: 0.683 MB / 454.1 MB, free: 15.36 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001811/0.2663, allocations: 186.8 kB / 454.3 MB, free: 15.18 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005241/0.2668, allocations: 0.5006 MB / 454.8 MB, free: 14.68 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002335/0.2692, allocations: 1.984 MB / 456.8 MB, free: 12.68 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.968e-06/0.2692, allocations: 0 / 456.8 MB, free: 12.68 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.2692, allocations: 4 kB / 456.8 MB, free: 12.68 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.864e-05/0.2692, allocations: 3.938 kB / 456.8 MB, free: 12.68 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 131 * Number of variables: 131 Notification: Performance of Generate backend data structure: time 0.003011/0.2722, allocations: 1.963 MB / 458.7 MB, free: 10.67 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.18e-05/0.2722, allocations: 15.98 kB / 458.7 MB, free: 10.66 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001065/0.2724, allocations: 90.7 kB / 458.8 MB, free: 10.56 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000231/0.2726, allocations: 207.7 kB / 459 MB, free: 10.36 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002132/0.2747, allocations: 1.247 MB / 460.3 MB, free: 9.051 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.602e-05/0.2747, allocations: 29 kB / 460.3 MB, free: 9.02 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.205e-05/0.2748, allocations: 47.95 kB / 460.4 MB, free: 8.973 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009689/0.2758, allocations: 0.5197 MB / 460.9 MB, free: 8.449 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.56e-05/0.2758, allocations: 0 / 460.9 MB, free: 8.449 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.758e-05/0.2759, allocations: 19.94 kB / 460.9 MB, free: 8.43 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.658e-05/0.2759, allocations: 16 kB / 460.9 MB, free: 8.414 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009672/0.2769, allocations: 472.1 kB / 461.4 MB, free: 7.957 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003232/0.2801, allocations: 1.941 MB / 463.3 MB, free: 5.938 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009689/0.2811, allocations: 0.506 MB / 463.8 MB, free: 5.422 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000774/0.2818, allocations: 477.2 kB / 464.3 MB, free: 4.957 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005244/0.2871, allocations: 2.268 MB / 466.5 MB, free: 2.664 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006224/0.2877, allocations: 313.6 kB / 466.9 MB, free: 2.344 MB / 366.1 MB Notification: Performance of pre-optimization done (n=61): time 2.315e-06/0.2877, allocations: 0 / 466.9 MB, free: 2.344 MB / 366.1 MB Notification: Performance of matching and sorting (n=65): time 0.005076/0.2928, allocations: 2.274 MB / 469.1 MB, free: 32 kB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.971e-05/0.2929, allocations: 63.84 kB / 469.2 MB, free: 15.96 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001633/0.2945, allocations: 1.299 MB / 470.5 MB, free: 14.66 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.835e-05/0.2945, allocations: 33.7 kB / 470.5 MB, free: 14.62 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006605/0.2952, allocations: 0.6964 MB / 471.2 MB, free: 13.92 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001997/0.2954, allocations: 230 kB / 471.4 MB, free: 13.69 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001971/0.2956, allocations: 130.3 kB / 471.6 MB, free: 13.56 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001672/0.2958, allocations: 334 kB / 471.9 MB, free: 13.23 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000481/0.2962, allocations: 213.6 kB / 472.1 MB, free: 13.02 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005924/0.2968, allocations: 356.5 kB / 472.5 MB, free: 12.61 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001089/0.2979, allocations: 0.6164 MB / 473.1 MB, free: 11.95 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.539e-06/0.2979, allocations: 7.938 kB / 473.1 MB, free: 11.94 MB / 382.1 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001773/0.2997, allocations: 0.9677 MB / 474 MB, free: 10.96 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.983e-05/0.2997, allocations: 8 kB / 474.1 MB, free: 10.95 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001056/0.2998, allocations: 63.98 kB / 474.1 MB, free: 10.89 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004886/0.3003, allocations: 181.2 kB / 474.3 MB, free: 10.71 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004547/0.3008, allocations: 107.8 kB / 474.4 MB, free: 10.6 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003649/0.3044, allocations: 2.634 MB / 477 MB, free: 7.859 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004521/0.3049, allocations: 24.03 kB / 477.1 MB, free: 7.836 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.473e-05/0.305, allocations: 36 kB / 477.1 MB, free: 7.801 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 7 (v.counter,$PRE.v.counter,v.counter2,$PRE.v.counter2,v.T0,$PRE.v.T0,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (54): * Single equations (assignments): 51 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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): 1 system {(4,17,75.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004201/0.3054, allocations: 269.7 kB / 477.4 MB, free: 7.527 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002125/0.3056, allocations: 190.9 kB / 477.5 MB, free: 7.34 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002111/0.3077, allocations: 0.9696 MB / 478.5 MB, free: 6.348 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.209e-05/0.3077, allocations: 8 kB / 478.5 MB, free: 6.34 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.394e-06/0.3077, allocations: 4 kB / 478.5 MB, free: 6.336 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.612e-06/0.3077, allocations: 0 / 478.5 MB, free: 6.336 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001591/0.3093, allocations: 0.8115 MB / 479.3 MB, free: 5.484 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001319/0.3094, allocations: 59.94 kB / 479.4 MB, free: 5.426 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004813/0.3099, allocations: 63.95 kB / 479.5 MB, free: 5.363 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006576/0.3106, allocations: 172.7 kB / 479.6 MB, free: 5.191 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.639e-05/0.3107, allocations: 27.92 kB / 479.7 MB, free: 5.164 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005014/0.3157, allocations: 2.631 MB / 482.3 MB, free: 2.426 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.448e-06/0.3157, allocations: 4 kB / 482.3 MB, free: 2.422 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003469/0.3192, allocations: 1.181 MB / 483.5 MB, free: 1.223 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005651/0.3197, allocations: 182.8 kB / 483.6 MB, free: 1.043 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002207/0.3199, allocations: 15.94 kB / 483.7 MB, free: 1.027 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006194/0.3206, allocations: 19.97 kB / 483.7 MB, free: 1.008 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002038/0.3208, allocations: 52.36 kB / 483.7 MB, free: 0.957 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.314e-05/0.3208, allocations: 23.98 kB / 483.8 MB, free: 0.9336 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001831/0.3227, allocations: 0.8496 MB / 484.6 MB, free: 96 kB / 382.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3227, allocations: 4 kB / 484.6 MB, free: 92 kB / 382.1 MB Notification: Performance of remove unused functions: time 0.001452/0.3241, allocations: 395.2 kB / 485 MB, free: 15.7 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (T1.vbe,T1.vbx,T2.vbe,T2.vbx) * Number of discrete variables: 4 ($whenCondition1,v.T0,v.counter,v.counter2) * Number of discrete states: 2 (v.counter,v.counter2) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 3 * 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): 1 system {(4,17,81.2%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.004737/0.3289, allocations: 2.089 MB / 487.1 MB, free: 13.57 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002866/0.3317, allocations: 0.8747 MB / 488 MB, free: 12.68 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.786e-06/0.3317, allocations: 0 / 488 MB, free: 12.68 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001953/0.3337, allocations: 0.6081 MB / 488.6 MB, free: 12.04 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001611/0.3353, allocations: 210.1 kB / 488.8 MB, free: 11.83 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02409/0.3594, allocations: 9.438 MB / 498.2 MB, free: 2.09 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009741/0.3603, allocations: 0.5838 MB / 498.8 MB, free: 1.469 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0009279/0.3613, allocations: 187.2 kB / 499 MB, free: 1.281 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001117/0.3624, allocations: 0.5696 MB / 499.5 MB, free: 0.7109 MB / 398.1 MB Notification: Performance of SimCode: time 9.92e-07/0.3624, allocations: 0 / 499.5 MB, free: 0.7109 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1038/0.4662, allocations: 31.21 MB / 0.5183 GB, free: 1.66 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.89/13.36, allocations: 3.938 kB / 0.5183 GB, free: 1.656 MB / 430.1 MB " [Timeout remaining time 647] (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.Oscillator.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.Oscillator.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.Oscillator.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.Oscillator.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Spice3.Examples.Oscillator_res.csv --start-time 0 --stop-time 0.025 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 4.998e-06 Modelica_trunk_Modelica_Electrical_Spice3_Examples_Oscillator.fmu > Modelica_trunk_Modelica.Electrical.Spice3.Examples.Oscillator.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Spice3.Examples.Oscillator_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/Oscillator/Oscillator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.Oscillator.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: 16.06077717989683]