Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.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.QuasiStatic.SinglePhase.Examples.Transformer,fileNamePrefix="Modelica_trunk_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_Transformer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer,fileNamePrefix="Modelica_trunk_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_Transformer",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001034/0.001035, allocations: 103.9 kB / 17.63 MB, free: 5.531 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001078/0.001078, allocations: 202.4 kB / 18.57 MB, free: 4.59 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.249/1.249, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001074/0.001074, allocations: 63.39 kB / 307 MB, free: 0.543 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07416/0.07525, allocations: 50.54 MB / 357.6 MB, free: 14.01 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer): time 0.005465/0.08075, allocations: 5.613 MB / 363.2 MB, free: 8.367 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002246/0.083, allocations: 1.861 MB / 365.1 MB, free: 6.496 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001901/0.08321, allocations: 20 kB / 365.1 MB, free: 6.477 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002789/0.08601, allocations: 1.618 MB / 366.7 MB, free: 4.855 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009607/0.08698, allocations: 0.5938 MB / 367.3 MB, free: 4.262 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000613/0.0876, allocations: 410.9 kB / 367.7 MB, free: 3.859 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006029/0.08822, allocations: 0.8018 MB / 368.5 MB, free: 3.051 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009766/0.0892, allocations: 0.8681 MB / 369.4 MB, free: 2.16 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003051/0.08952, allocations: 358.6 kB / 369.7 MB, free: 1.809 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004232/0.08995, allocations: 498.1 kB / 370.2 MB, free: 1.32 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.473e-05/0.09004, allocations: 76 kB / 370.3 MB, free: 1.246 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003502/0.0904, allocations: 247.8 kB / 370.5 MB, free: 1.004 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001152/0.09052, allocations: 191.2 kB / 370.7 MB, free: 0.8164 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002745/0.0908, allocations: 422 kB / 371.1 MB, free: 412 kB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1406/0.2314, allocations: 1.152 MB / 372.3 MB, free: 11.96 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.92e-06/0.2314, allocations: 0 / 372.3 MB, free: 11.96 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.2314, allocations: 1.188 kB / 372.3 MB, free: 11.96 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.561e-05/0.2314, allocations: 0 / 372.3 MB, free: 11.96 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 246 * Number of variables: 246 Notification: Performance of Generate backend data structure: time 0.003012/0.2345, allocations: 1.347 MB / 373.6 MB, free: 11.42 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.423e-05/0.2345, allocations: 10.69 kB / 373.6 MB, free: 11.42 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001404/0.2346, allocations: 147.1 kB / 373.8 MB, free: 11.38 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004356/0.239, allocations: 0.6505 MB / 374.4 MB, free: 11.34 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004538/0.2395, allocations: 416.2 kB / 374.8 MB, free: 11.1 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.214e-05/0.2395, allocations: 76.88 kB / 374.9 MB, free: 11.1 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001419/0.2397, allocations: 97.77 kB / 375 MB, free: 11.1 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001589/0.2413, allocations: 0.9842 MB / 376 MB, free: 11.01 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.002e-05/0.2413, allocations: 1.375 kB / 376 MB, free: 11.01 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.772e-05/0.2414, allocations: 40.73 kB / 376 MB, free: 11.01 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.923e-05/0.2414, allocations: 24.03 kB / 376 MB, free: 11.01 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001536/0.243, allocations: 0.921 MB / 377 MB, free: 11 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004076/0.2471, allocations: 3.446 MB / 380.4 MB, free: 9.172 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001867/0.2489, allocations: 2.237 MB / 382.6 MB, free: 7.07 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004067/0.2494, allocations: 291.2 kB / 382.9 MB, free: 6.938 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001099/0.2495, allocations: 178.7 kB / 383.1 MB, free: 6.746 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.525e-05/0.2495, allocations: 45.67 kB / 383.2 MB, free: 6.699 MB / 302.1 MB Notification: Performance of pre-optimization done (n=65): time 2.194e-06/0.2495, allocations: 0 / 383.2 MB, free: 6.699 MB / 302.1 MB Notification: Performance of matching and sorting (n=65): time 0.001325/0.2509, allocations: 0.7171 MB / 383.9 MB, free: 6.402 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.421e-05/0.2509, allocations: 114.8 kB / 384 MB, free: 6.273 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002628/0.2512, allocations: 275.8 kB / 384.3 MB, free: 6.102 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.422e-05/0.2512, allocations: 35.83 kB / 384.3 MB, free: 6.062 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001606/0.2514, allocations: 377.4 kB / 384.7 MB, free: 5.766 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001314/0.2515, allocations: 227.5 kB / 384.9 MB, free: 5.594 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001865/0.2517, allocations: 134.9 kB / 385 MB, free: 5.523 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.27e-05/0.2518, allocations: 346.8 kB / 385.3 MB, free: 5.195 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003975/0.2522, allocations: 229.2 kB / 385.6 MB, free: 5.113 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004656/0.2527, allocations: 432.5 kB / 386 MB, free: 4.777 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008673/0.2535, allocations: 0.6997 MB / 386.7 MB, free: 4.305 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.613e-06/0.2536, allocations: 2.25 kB / 386.7 MB, free: 4.305 MB / 302.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001192/0.2548, allocations: 0.7493 MB / 387.4 MB, free: 4.016 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.153e-05/0.2548, allocations: 11.5 kB / 387.5 MB, free: 4.012 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.43e-05/0.2548, allocations: 10.84 kB / 387.5 MB, free: 4.008 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.803e-05/0.2548, allocations: 10.91 kB / 387.5 MB, free: 4.008 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006832/0.2555, allocations: 186.1 kB / 387.7 MB, free: 4.004 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.869e-05/0.2556, allocations: 15.86 kB / 387.7 MB, free: 4.004 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004531/0.256, allocations: 78.14 kB / 387.8 MB, free: 3.953 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.517e-05/0.2561, allocations: 36.19 kB / 387.8 MB, free: 3.945 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * 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 (98): * Single equations (assignments): 98 * 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.0003349/0.2564, allocations: 230.7 kB / 388 MB, free: 3.762 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001427/0.2566, allocations: 44.11 kB / 388.1 MB, free: 3.738 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001344/0.2579, allocations: 0.6455 MB / 388.7 MB, free: 3.449 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.236e-05/0.258, allocations: 7 kB / 388.7 MB, free: 3.449 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.716e-06/0.258, allocations: 1.312 kB / 388.7 MB, free: 3.449 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.294e-05/0.258, allocations: 5.25 kB / 388.7 MB, free: 3.449 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002078/0.2601, allocations: 1.483 MB / 390.2 MB, free: 2.664 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.639e-06/0.2601, allocations: 1.25 kB / 390.2 MB, free: 2.664 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005324/0.2606, allocations: 145.1 kB / 390.3 MB, free: 2.656 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.883e-06/0.2607, allocations: 3.562 kB / 390.3 MB, free: 2.656 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.631e-05/0.2607, allocations: 16.47 kB / 390.4 MB, free: 2.645 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.27e-06/0.2607, allocations: 7.312 kB / 390.4 MB, free: 2.641 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.415e-06/0.2607, allocations: 0.9375 kB / 390.4 MB, free: 2.641 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001366/0.2621, allocations: 1.12 MB / 391.5 MB, free: 2 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001082/0.2622, allocations: 123.6 kB / 391.6 MB, free: 1.875 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.943e-05/0.2623, allocations: 15.42 kB / 391.6 MB, free: 1.867 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003573/0.2626, allocations: 24.3 kB / 391.6 MB, free: 1.855 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.122e-05/0.2627, allocations: 43.23 kB / 391.7 MB, free: 1.848 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.599e-05/0.2628, allocations: 19.02 kB / 391.7 MB, free: 1.844 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001702/0.263, allocations: 190 kB / 391.9 MB, free: 1.73 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.81e-07/0.263, allocations: 1.062 kB / 391.9 MB, free: 1.73 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008755/0.2639, allocations: 230.6 kB / 392.1 MB, free: 1.656 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (load.pin_p.reference.gamma,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 (72): * Single equations (assignments): 72 * 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.001716/0.2656, allocations: 1.703 MB / 393.8 MB, free: 484 kB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001254/0.2668, allocations: 0.6425 MB / 394.5 MB, free: 268 kB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.2669, allocations: 6.812 kB / 394.5 MB, free: 264 kB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004274/0.2673, allocations: 307.6 kB / 394.8 MB, free: 168 kB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006094/0.2679, allocations: 44.3 kB / 394.8 MB, free: 140 kB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006248/0.2742, allocations: 4.845 MB / 399.7 MB, free: 12.9 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00041/0.2746, allocations: 0.9036 MB / 400.6 MB, free: 12.19 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003298/0.2749, allocations: 82.86 kB / 400.6 MB, free: 12.16 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003016/0.2752, allocations: 253.5 kB / 400.9 MB, free: 11.96 MB / 318.1 MB Notification: Performance of SimCode: time 5.81e-07/0.2752, allocations: 0 / 400.9 MB, free: 11.96 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.167/1.442, allocations: 9.393 MB / 410.3 MB, free: 3.988 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.93/11.37, allocations: 7.922 kB / 410.3 MB, free: 3.98 MB / 318.1 MB (rm -f Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.pipe >> ../files/Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_Transformer_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_Transformer.fmu > Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/QuasiStatic/SinglePhase/Examples/Transformer/Transformer.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches