Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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.SeriesResonance,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_SeriesResonance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SeriesResonance,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_SeriesResonance",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001185/0.001185, allocations: 118.8 kB / 17.78 MB, free: 5.25 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001547/0.001548, allocations: 201.2 kB / 18.73 MB, free: 4.305 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.362/1.362, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00122/0.00122, allocations: 63.89 kB / 358.2 MB, free: 13.39 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2334/0.2346, allocations: 50.53 MB / 408.8 MB, free: 1.52 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SeriesResonance): time 0.00376/0.2384, allocations: 2.909 MB / 411.7 MB, free: 14.6 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001141/0.2396, allocations: 0.7089 MB / 412.4 MB, free: 13.88 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001483/0.2397, allocations: 7.938 kB / 412.4 MB, free: 13.87 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000182/0.2399, allocations: 59.44 kB / 412.4 MB, free: 13.81 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001636/0.2401, allocations: 87.19 kB / 412.5 MB, free: 13.73 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000256/0.2404, allocations: 91.81 kB / 412.6 MB, free: 13.64 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003847/0.2408, allocations: 374.5 kB / 413 MB, free: 13.27 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002483/0.2411, allocations: 145.3 kB / 413.1 MB, free: 13.12 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002773/0.2413, allocations: 159.5 kB / 413.3 MB, free: 12.97 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001954/0.2415, allocations: 151.3 kB / 413.4 MB, free: 12.82 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.57e-05/0.2416, allocations: 35.94 kB / 413.5 MB, free: 12.79 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.541e-05/0.2417, allocations: 32 kB / 413.5 MB, free: 12.75 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.846e-05/0.2417, allocations: 79.75 kB / 413.6 MB, free: 12.68 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001372/0.2419, allocations: 171.1 kB / 413.7 MB, free: 12.51 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003482/0.2422, allocations: 376.3 kB / 414.1 MB, free: 12.14 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.71e-06/0.2422, allocations: 0 / 414.1 MB, free: 12.14 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.894e-06/0.2422, allocations: 0 / 414.1 MB, free: 12.14 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.141e-05/0.2423, allocations: 0 / 414.1 MB, free: 12.14 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.0008819/0.2431, allocations: 0.6082 MB / 414.7 MB, free: 11.48 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.555e-05/0.2432, allocations: 12.03 kB / 414.7 MB, free: 11.47 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.83e-05/0.2433, allocations: 66.72 kB / 414.8 MB, free: 11.4 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.805e-05/0.2434, allocations: 36.56 kB / 414.8 MB, free: 11.36 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003559/0.2437, allocations: 263.7 kB / 415.1 MB, free: 11.07 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.323e-05/0.2437, allocations: 29.03 kB / 415.1 MB, free: 11.04 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.113e-05/0.2438, allocations: 32.38 kB / 415.1 MB, free: 11.01 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005001/0.2443, allocations: 278.1 kB / 415.4 MB, free: 10.73 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.166e-05/0.2443, allocations: 0 / 415.4 MB, free: 10.73 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.778e-05/0.2444, allocations: 16 kB / 415.4 MB, free: 10.71 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.816e-06/0.2444, allocations: 8 kB / 415.4 MB, free: 10.71 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004309/0.2448, allocations: 198.5 kB / 415.6 MB, free: 10.52 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00133/0.2462, allocations: 0.9713 MB / 416.6 MB, free: 9.465 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000298/0.2465, allocations: 162.5 kB / 416.8 MB, free: 9.297 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001656/0.2466, allocations: 84.75 kB / 416.9 MB, free: 9.211 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.819e-05/0.2467, allocations: 4.312 kB / 416.9 MB, free: 9.207 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.577e-05/0.2467, allocations: 34.56 kB / 416.9 MB, free: 9.164 MB / 334.1 MB Notification: Performance of pre-optimization done (n=17): time 1.263e-06/0.2467, allocations: 0 / 416.9 MB, free: 9.164 MB / 334.1 MB Notification: Performance of matching and sorting (n=17): time 0.0005482/0.2473, allocations: 224.1 kB / 417.1 MB, free: 8.941 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.376e-05/0.2473, allocations: 55.41 kB / 417.2 MB, free: 8.875 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002014/0.2475, allocations: 210.7 kB / 417.4 MB, free: 8.66 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.129e-05/0.2476, allocations: 29.7 kB / 417.4 MB, free: 8.625 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001153/0.2477, allocations: 192 kB / 417.6 MB, free: 8.43 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.8e-05/0.2477, allocations: 71.08 kB / 417.7 MB, free: 8.359 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.195e-05/0.2478, allocations: 49.7 kB / 417.7 MB, free: 8.305 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001141/0.2479, allocations: 330.8 kB / 418 MB, free: 7.973 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001636/0.2481, allocations: 55.97 kB / 418.1 MB, free: 7.918 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001883/0.2483, allocations: 126 kB / 418.2 MB, free: 7.773 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003658/0.2487, allocations: 189.8 kB / 418.4 MB, free: 7.566 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.452e-06/0.2487, allocations: 7.938 kB / 418.4 MB, free: 7.559 MB / 334.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004459/0.2491, allocations: 233.2 kB / 418.6 MB, free: 7.324 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.687e-05/0.2492, allocations: 8 kB / 418.6 MB, free: 7.316 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.119e-06/0.2492, allocations: 0 / 418.6 MB, free: 7.316 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.805e-05/0.2492, allocations: 4 kB / 418.6 MB, free: 7.312 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002834/0.2495, allocations: 63.89 kB / 418.7 MB, free: 7.25 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.716e-06/0.2495, allocations: 4.125 kB / 418.7 MB, free: 7.246 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001463/0.2497, allocations: 31.69 kB / 418.7 MB, free: 7.215 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.737e-05/0.2497, allocations: 11.98 kB / 418.7 MB, free: 7.203 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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 (29): * Single equations (assignments): 29 * 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.0001394/0.2498, allocations: 149.6 kB / 418.9 MB, free: 7.047 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.488e-05/0.2499, allocations: 19.81 kB / 418.9 MB, free: 7.027 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004012/0.2503, allocations: 193.6 kB / 419.1 MB, free: 6.836 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.673e-06/0.2503, allocations: 8 kB / 419.1 MB, free: 6.828 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.528e-06/0.2503, allocations: 0 / 419.1 MB, free: 6.828 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.45e-06/0.2503, allocations: 0 / 419.1 MB, free: 6.828 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003451/0.2507, allocations: 317.3 kB / 419.4 MB, free: 6.469 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.714e-06/0.2507, allocations: 4 kB / 419.4 MB, free: 6.465 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002642/0.2509, allocations: 43.97 kB / 419.5 MB, free: 6.422 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.969e-06/0.251, allocations: 4 kB / 419.5 MB, free: 6.418 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.492e-05/0.251, allocations: 7.938 kB / 419.5 MB, free: 6.41 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.044e-06/0.251, allocations: 0 / 419.5 MB, free: 6.41 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.61e-07/0.251, allocations: 0 / 419.5 MB, free: 6.41 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005502/0.2516, allocations: 362.9 kB / 419.8 MB, free: 6.039 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.598e-05/0.2516, allocations: 96.91 kB / 419.9 MB, free: 5.926 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.875e-05/0.2517, allocations: 4.062 kB / 419.9 MB, free: 5.922 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001654/0.2518, allocations: 11.98 kB / 419.9 MB, free: 5.91 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.852e-05/0.2519, allocations: 19.98 kB / 420 MB, free: 5.891 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.123e-05/0.2519, allocations: 4 kB / 420 MB, free: 5.887 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001153/0.252, allocations: 148.6 kB / 420.1 MB, free: 5.742 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.252, allocations: 0 / 420.1 MB, free: 5.742 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003107/0.2523, allocations: 75.69 kB / 420.2 MB, free: 5.668 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (sineVoltage.phi,inductor1.i,capacitor1.v,cosineVoltage.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 (19): * Single equations (assignments): 19 * 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.0008349/0.2532, allocations: 0.8904 MB / 421.1 MB, free: 4.75 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000402/0.2536, allocations: 151.9 kB / 421.2 MB, free: 4.602 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.255e-06/0.2536, allocations: 0 / 421.2 MB, free: 4.602 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001575/0.2538, allocations: 80.14 kB / 421.3 MB, free: 4.523 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003463/0.2541, allocations: 36.98 kB / 421.3 MB, free: 4.488 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003182/0.2573, allocations: 2.707 MB / 424 MB, free: 1.664 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002748/0.2576, allocations: 0.7671 MB / 424.8 MB, free: 0.8711 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.945e-05/0.2577, allocations: 29.92 kB / 424.8 MB, free: 0.8438 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001162/0.2578, allocations: 95.41 kB / 424.9 MB, free: 0.75 MB / 334.1 MB Notification: Performance of SimCode: time 4.01e-07/0.2578, allocations: 0 / 424.9 MB, free: 0.75 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02458/0.2824, allocations: 4.553 MB / 429.5 MB, free: 12.3 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.53/7.812, allocations: 12.42 kB / 429.5 MB, free: 12.3 MB / 350.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_SeriesResonance_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_SeriesResonance.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/SeriesResonance/SeriesResonance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches