Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ParallelResonance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001305/0.001305, allocations: 108.6 kB / 21.22 MB, free: 0.7305 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001395/0.001395, allocations: 191.5 kB / 24.51 MB, free: 4.086 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.373/1.373, allocations: 225.6 MB / 253.3 MB, free: 13.02 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ParallelResonance,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ParallelResonance",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ParallelResonance,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ParallelResonance",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00147/0.00147, allocations: 43.94 kB / 371.2 MB, free: 9.855 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2501/0.2516, allocations: 52.18 MB / 423.4 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ParallelResonance): time 0.004173/0.2558, allocations: 2.923 MB / 426.3 MB, free: 11.68 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001284/0.257, allocations: 0.6777 MB / 427 MB, free: 10.99 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001473/0.2572, allocations: 8 kB / 427 MB, free: 10.98 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001969/0.2574, allocations: 59.38 kB / 427.1 MB, free: 10.93 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001675/0.2576, allocations: 83.2 kB / 427.2 MB, free: 10.84 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002758/0.2578, allocations: 99.86 kB / 427.3 MB, free: 10.75 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004162/0.2583, allocations: 390.7 kB / 427.7 MB, free: 10.36 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002372/0.2585, allocations: 118 kB / 427.8 MB, free: 10.25 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002197/0.2587, allocations: 163.4 kB / 427.9 MB, free: 10.09 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001974/0.2589, allocations: 155.3 kB / 428.1 MB, free: 9.938 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.944e-05/0.259, allocations: 32 kB / 428.1 MB, free: 9.906 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.04e-05/0.259, allocations: 32 kB / 428.1 MB, free: 9.875 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.765e-05/0.2591, allocations: 71.77 kB / 428.2 MB, free: 9.805 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001643/0.2592, allocations: 179.2 kB / 428.4 MB, free: 9.629 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004226/0.2597, allocations: 386 kB / 428.8 MB, free: 9.254 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.2597, allocations: 0 / 428.8 MB, free: 9.254 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.2597, allocations: 0 / 428.8 MB, free: 9.254 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.033e-05/0.2597, allocations: 0 / 428.8 MB, free: 9.254 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: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.0009394/0.2606, allocations: 0.556 MB / 429.3 MB, free: 8.668 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.56e-05/0.2607, allocations: 8.031 kB / 429.3 MB, free: 8.66 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.885e-05/0.2607, allocations: 12.84 kB / 429.3 MB, free: 8.645 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.536e-05/0.2608, allocations: 70.72 kB / 429.4 MB, free: 8.566 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.789e-05/0.2608, allocations: 36.7 kB / 429.4 MB, free: 8.531 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003694/0.2612, allocations: 206 kB / 429.6 MB, free: 8.305 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.365e-05/0.2612, allocations: 21.03 kB / 429.7 MB, free: 8.285 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.009e-05/0.2613, allocations: 36.33 kB / 429.7 MB, free: 8.25 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005382/0.2618, allocations: 282 kB / 430 MB, free: 7.973 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.062e-05/0.2618, allocations: 4 kB / 430 MB, free: 7.969 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.984e-05/0.2619, allocations: 12 kB / 430 MB, free: 7.957 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.358e-06/0.2619, allocations: 8 kB / 430 MB, free: 7.949 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004686/0.2623, allocations: 214.5 kB / 430.2 MB, free: 7.738 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001588/0.2639, allocations: 0.9721 MB / 431.2 MB, free: 6.695 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003341/0.2643, allocations: 161.7 kB / 431.3 MB, free: 6.531 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000278/0.2645, allocations: 120 kB / 431.5 MB, free: 6.414 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.091e-05/0.2646, allocations: 4 kB / 431.5 MB, free: 6.41 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.971e-05/0.2646, allocations: 34.56 kB / 431.5 MB, free: 6.367 MB / 334.1 MB Notification: Performance of pre-optimization done (n=19): time 1.413e-06/0.2646, allocations: 0 / 431.5 MB, free: 6.367 MB / 334.1 MB Notification: Performance of matching and sorting (n=19): time 0.0005869/0.2652, allocations: 237.6 kB / 431.7 MB, free: 6.129 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.101e-05/0.2652, allocations: 55.34 kB / 431.8 MB, free: 6.062 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002234/0.2654, allocations: 211.2 kB / 432 MB, free: 5.844 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.356e-05/0.2655, allocations: 29.7 kB / 432 MB, free: 5.809 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001432/0.2656, allocations: 196.4 kB / 432.2 MB, free: 5.613 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.141e-05/0.2657, allocations: 71.38 kB / 432.3 MB, free: 5.543 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.433e-05/0.2658, allocations: 57.94 kB / 432.3 MB, free: 5.477 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001561/0.2659, allocations: 330.8 kB / 432.7 MB, free: 5.145 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001793/0.2661, allocations: 68.53 kB / 432.7 MB, free: 5.078 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002275/0.2663, allocations: 143.3 kB / 432.9 MB, free: 4.906 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004431/0.2668, allocations: 237.1 kB / 433.1 MB, free: 4.641 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.2668, allocations: 0 / 433.1 MB, free: 4.641 MB / 334.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0005215/0.2673, allocations: 269.2 kB / 433.4 MB, free: 4.371 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.773e-05/0.2673, allocations: 8.25 kB / 433.4 MB, free: 4.363 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.875e-06/0.2673, allocations: 7.984 kB / 433.4 MB, free: 4.355 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.996e-05/0.2674, allocations: 4 kB / 433.4 MB, free: 4.352 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002938/0.2677, allocations: 67.91 kB / 433.4 MB, free: 4.285 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.203e-05/0.2677, allocations: 7.938 kB / 433.5 MB, free: 4.277 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00017/0.2678, allocations: 35.77 kB / 433.5 MB, free: 4.242 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.168e-05/0.2679, allocations: 16 kB / 433.5 MB, free: 4.227 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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 (33): * Single equations (assignments): 33 * 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 prepare postOptimizeDAE: time 0.0001495/0.268, allocations: 145.7 kB / 433.6 MB, free: 4.074 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.578e-05/0.2681, allocations: 23.91 kB / 433.7 MB, free: 4.051 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004422/0.2685, allocations: 198.9 kB / 433.9 MB, free: 3.852 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.386e-06/0.2685, allocations: 7.984 kB / 433.9 MB, free: 3.844 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.2685, allocations: 0 / 433.9 MB, free: 3.844 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.837e-06/0.2685, allocations: 0 / 433.9 MB, free: 3.844 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008786/0.2694, allocations: 0.5795 MB / 434.4 MB, free: 3.211 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.047e-06/0.2694, allocations: 4 kB / 434.5 MB, free: 3.207 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002795/0.2697, allocations: 51.97 kB / 434.5 MB, free: 3.156 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.381e-06/0.2697, allocations: 4 kB / 434.5 MB, free: 3.152 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.797e-05/0.2697, allocations: 3.984 kB / 434.5 MB, free: 3.148 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.093e-06/0.2697, allocations: 4 kB / 434.5 MB, free: 3.145 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.826e-06/0.2697, allocations: 3.938 kB / 434.5 MB, free: 3.141 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006122/0.2703, allocations: 377.4 kB / 434.9 MB, free: 2.746 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.827e-05/0.2704, allocations: 23.86 kB / 434.9 MB, free: 2.723 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.101e-05/0.2704, allocations: 7.984 kB / 434.9 MB, free: 2.715 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001748/0.2706, allocations: 19.98 kB / 434.9 MB, free: 2.695 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.878e-05/0.2706, allocations: 15.98 kB / 435 MB, free: 2.68 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.547e-05/0.2706, allocations: 11.92 kB / 435 MB, free: 2.668 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001462/0.2708, allocations: 160.6 kB / 435.1 MB, free: 2.512 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2708, allocations: 0 / 435.1 MB, free: 2.512 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003342/0.2711, allocations: 75.78 kB / 435.2 MB, free: 2.438 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 6 (sineCurrent.phi,inductor1.i,capacitor1.v,cosineCurrent.phi,inductor2.i,capacitor2.v) * 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 (21): * Single equations (assignments): 21 * 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.0008991/0.272, allocations: 0.9068 MB / 436.1 MB, free: 1.496 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004236/0.2724, allocations: 172.5 kB / 436.3 MB, free: 1.328 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.2724, allocations: 0 / 436.3 MB, free: 1.328 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001729/0.2726, allocations: 79.83 kB / 436.3 MB, free: 1.25 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003474/0.273, allocations: 39.81 kB / 436.4 MB, free: 1.215 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003682/0.2766, allocations: 2.833 MB / 439.2 MB, free: 14.23 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003961/0.277, allocations: 0.7675 MB / 440 MB, free: 13.44 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001009/0.2771, allocations: 25.94 kB / 440 MB, free: 13.42 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000131/0.2773, allocations: 91.41 kB / 440.1 MB, free: 13.33 MB / 350.1 MB Notification: Performance of SimCode: time 6.81e-07/0.2773, allocations: 0 / 440.1 MB, free: 13.33 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02617/0.3034, allocations: 4.96 MB / 445.1 MB, free: 8.523 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.69/11, allocations: 9.531 kB / 445.1 MB, free: 8.523 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ParallelResonance.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ParallelResonance.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ParallelResonance.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ParallelResonance.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ParallelResonance_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ParallelResonance_fmu --startTime=0 --stopTime=1 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ParallelResonance.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ParallelResonance.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ParallelResonance_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/ParallelResonance/ParallelResonance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ParallelResonance.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: 13.82789292302914]