Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesResonance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesResonance,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_QuasiStationary_SinglePhase_Examples_SeriesResonance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesResonance,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_QuasiStationary_SinglePhase_Examples_SeriesResonance",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001223/0.001223, allocations: 174.7 kB / 16.72 MB, free: 4.953 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.257/1.257, allocations: 205.4 MB / 222.9 MB, free: 9.008 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007527/0.0007527, allocations: 87.8 kB / 271.2 MB, free: 8.242 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003035/0.0003036, allocations: 8 kB / 327.6 MB, free: 15.79 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2149/0.2152, allocations: 47.57 MB / 375.2 MB, free: 45.34 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesResonance): time 0.002785/0.218, allocations: 3.186 MB / 378.4 MB, free: 42.83 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001733/0.2198, allocations: 1.343 MB / 379.7 MB, free: 41.75 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001591/0.22, allocations: 13.56 kB / 379.7 MB, free: 41.75 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003248/0.2203, allocations: 130.8 kB / 379.9 MB, free: 41.65 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008564/0.2212, allocations: 469.2 kB / 380.3 MB, free: 41.31 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005765/0.2217, allocations: 351.7 kB / 380.7 MB, free: 41.05 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003623/0.2221, allocations: 445.8 kB / 381.1 MB, free: 40.79 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001037/0.2232, allocations: 0.6815 MB / 381.8 MB, free: 40.28 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002598/0.2234, allocations: 185 kB / 382 MB, free: 40.18 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002327/0.2237, allocations: 238.1 kB / 382.2 MB, free: 40.04 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.592e-05/0.2237, allocations: 21.12 kB / 382.2 MB, free: 40.04 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003372/0.2241, allocations: 180.5 kB / 382.4 MB, free: 39.97 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.665e-05/0.2241, allocations: 87.72 kB / 382.5 MB, free: 39.9 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001726/0.2243, allocations: 236.8 kB / 382.7 MB, free: 39.73 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004176/0.2247, allocations: 0.5205 MB / 383.2 MB, free: 39.34 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/0.2248, allocations: 0 / 383.2 MB, free: 39.34 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.843e-06/0.2248, allocations: 0 / 383.2 MB, free: 39.34 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.08e-05/0.2248, allocations: 0 / 383.2 MB, free: 39.34 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 144 * Number of variables: 144 Notification: Performance of Generate backend data structure: time 0.001697/0.2265, allocations: 0.8345 MB / 384.1 MB, free: 38.68 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.729e-05/0.2265, allocations: 9.219 kB / 384.1 MB, free: 38.68 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001199/0.2267, allocations: 107.4 kB / 384.2 MB, free: 38.59 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003787/0.2304, allocations: 0.5932 MB / 384.8 MB, free: 38.35 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003586/0.2308, allocations: 317.8 kB / 385.1 MB, free: 38.03 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.473e-05/0.2309, allocations: 41.12 kB / 385.1 MB, free: 38.01 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.477e-05/0.231, allocations: 61.16 kB / 385.2 MB, free: 37.98 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000942/0.2319, allocations: 0.5619 MB / 385.7 MB, free: 37.65 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.256e-05/0.2319, allocations: 7.844 kB / 385.7 MB, free: 37.64 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.975e-05/0.232, allocations: 21.28 kB / 385.8 MB, free: 37.63 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.688e-05/0.232, allocations: 14.84 kB / 385.8 MB, free: 37.63 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001003/0.233, allocations: 0.6443 MB / 386.4 MB, free: 37.22 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002442/0.2355, allocations: 2.057 MB / 388.5 MB, free: 35.03 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001761/0.2372, allocations: 3.012 MB / 391.5 MB, free: 31.45 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002904/0.2375, allocations: 223.8 kB / 391.7 MB, free: 31.23 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.808e-05/0.2376, allocations: 93.53 kB / 391.8 MB, free: 31.12 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.961e-05/0.2377, allocations: 46.88 kB / 391.8 MB, free: 31.07 MB / 298.7 MB Notification: Performance of pre-optimization done (n=49): time 2.685e-06/0.2377, allocations: 0 / 391.8 MB, free: 31.07 MB / 298.7 MB Notification: Performance of matching and sorting (n=49): time 0.001716/0.2394, allocations: 0.8128 MB / 392.7 MB, free: 30.23 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.608e-05/0.2394, allocations: 63.78 kB / 392.7 MB, free: 30.15 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001427/0.2396, allocations: 200.5 kB / 392.9 MB, free: 29.95 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.399e-05/0.2396, allocations: 33.7 kB / 393 MB, free: 29.91 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.699e-05/0.2397, allocations: 240 kB / 393.2 MB, free: 29.67 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.023e-05/0.2398, allocations: 169.5 kB / 393.4 MB, free: 29.5 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.234e-05/0.2398, allocations: 12 kB / 393.4 MB, free: 29.49 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.849e-05/0.2399, allocations: 334.8 kB / 393.7 MB, free: 29.16 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002556/0.2401, allocations: 173 kB / 393.9 MB, free: 28.99 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002952/0.2405, allocations: 270 kB / 394.1 MB, free: 28.68 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005841/0.241, allocations: 472.5 kB / 394.6 MB, free: 28.18 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.467e-06/0.2411, allocations: 4 kB / 394.6 MB, free: 28.18 MB / 298.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.0008518/0.2419, allocations: 0.5861 MB / 395.2 MB, free: 27.58 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.634e-05/0.2419, allocations: 8 kB / 395.2 MB, free: 27.57 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.634e-06/0.242, allocations: 352 / 395.2 MB, free: 27.57 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003085/0.2423, allocations: 92.8 kB / 395.3 MB, free: 27.48 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003653/0.2426, allocations: 111.8 kB / 395.4 MB, free: 27.37 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001435/0.2441, allocations: 1.862 MB / 397.2 MB, free: 25.38 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002774/0.2444, allocations: 59.52 kB / 397.3 MB, free: 25.32 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.986e-05/0.2444, allocations: 20 kB / 397.3 MB, free: 25.3 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * 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 (58): * Single equations (assignments): 57 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001636/0.2446, allocations: 161.8 kB / 397.5 MB, free: 25.13 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.952e-05/0.2446, allocations: 39.55 kB / 397.5 MB, free: 25.09 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009213/0.2456, allocations: 0.5552 MB / 398.1 MB, free: 24.52 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.01e-06/0.2456, allocations: 11.94 kB / 398.1 MB, free: 24.51 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.865e-06/0.2456, allocations: 0 / 398.1 MB, free: 24.51 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.352e-06/0.2456, allocations: 3.984 kB / 398.1 MB, free: 24.51 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001303/0.2469, allocations: 1.157 MB / 399.2 MB, free: 23.29 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.186e-06/0.2469, allocations: 0 / 399.2 MB, free: 23.29 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002915/0.2472, allocations: 79.84 kB / 399.3 MB, free: 23.21 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002324/0.2475, allocations: 92.73 kB / 399.4 MB, free: 23.11 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.386e-05/0.2475, allocations: 12 kB / 399.4 MB, free: 23.1 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001286/0.2488, allocations: 1.847 MB / 401.3 MB, free: 21.12 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.61e-07/0.2488, allocations: 0 / 401.3 MB, free: 21.12 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001054/0.2499, allocations: 0.8154 MB / 402.1 MB, free: 20.29 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.901e-05/0.2499, allocations: 120.6 kB / 402.2 MB, free: 20.15 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.44e-05/0.25, allocations: 8 kB / 402.2 MB, free: 20.14 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002164/0.2502, allocations: 19.98 kB / 402.2 MB, free: 20.12 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.387e-05/0.2503, allocations: 36.39 kB / 402.3 MB, free: 20.09 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.21e-05/0.2503, allocations: 12 kB / 402.3 MB, free: 20.07 MB / 298.7 MB Notification: Performance of sorting global known variables: time 8.556e-05/0.2504, allocations: 148.1 kB / 402.4 MB, free: 19.93 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2504, allocations: 4 kB / 402.4 MB, free: 19.93 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005548/0.251, allocations: 163.6 kB / 402.6 MB, free: 19.77 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (voltageSource.pin_p.reference.gamma) * 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 (44): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00131/0.2523, allocations: 1.387 MB / 404 MB, free: 18.35 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0008534/0.2532, allocations: 0.5971 MB / 404.6 MB, free: 17.74 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.2532, allocations: 0 / 404.6 MB, free: 17.74 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004418/0.2536, allocations: 393.8 kB / 405 MB, free: 17.34 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000352/0.254, allocations: 31.56 kB / 405 MB, free: 17.31 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002753/0.2567, allocations: 2.321 MB / 407.3 MB, free: 14.9 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002198/0.257, allocations: 0.8172 MB / 408.1 MB, free: 14.06 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001915/0.2572, allocations: 155.4 kB / 408.3 MB, free: 13.91 MB / 298.7 MB Notification: Performance of SimCode: time 4.71e-07/0.2572, allocations: 0 / 408.3 MB, free: 13.91 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.115/3.372, allocations: 7.539 MB / 415.8 MB, free: 6.352 MB / 298.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesResonance.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesResonance.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesResonance.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesResonance.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesResonance_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_QuasiStationary_SinglePhase_Examples_SeriesResonance_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_QuasiStationary_SinglePhase_Examples_SeriesResonance.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesResonance.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesResonance_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/QuasiStationary/SinglePhase/Examples/SeriesResonance/SeriesResonance.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesResonance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches