Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.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: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcse.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcse.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001119/0.001119, allocations: 109.8 kB / 18.3 MB, free: 4.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001226/0.001226, allocations: 211.9 kB / 19.25 MB, free: 3.895 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.356/1.356, allocations: 227.4 MB / 247.4 MB, free: 10.58 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001165/0.001165, allocations: 60.23 kB / 307.6 MB, free: 0.6406 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08146/0.08264, allocations: 50.52 MB / 358.1 MB, free: 14.12 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.009395/0.09208, allocations: 8.247 MB / 366.4 MB, free: 5.824 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004638/0.09675, allocations: 2.743 MB / 369.1 MB, free: 3.074 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009444/0.09773, allocations: 31.88 kB / 369.2 MB, free: 3.043 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001633/0.09941, allocations: 0.552 MB / 369.7 MB, free: 2.488 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001468/0.1009, allocations: 480.1 kB / 370.2 MB, free: 2.016 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006779/0.1016, allocations: 271.6 kB / 370.5 MB, free: 1.75 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001679/0.1033, allocations: 1.502 MB / 372 MB, free: 248 kB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1457/0.2489, allocations: 0.5742 MB / 372.5 MB, free: 10.63 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001036/0.25, allocations: 0.5639 MB / 373.1 MB, free: 10.62 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006086/0.2506, allocations: 0.6119 MB / 373.7 MB, free: 10.48 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001917/0.2508, allocations: 139.6 kB / 373.8 MB, free: 10.48 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003858/0.2512, allocations: 188.5 kB / 374 MB, free: 10.48 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001859/0.2514, allocations: 286.9 kB / 374.3 MB, free: 10.43 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005665/0.252, allocations: 0.6722 MB / 375 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00173/0.2537, allocations: 1.74 MB / 376.7 MB, free: 10.01 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.2537, allocations: 1.375 kB / 376.7 MB, free: 10.01 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.392e-06/0.2538, allocations: 0 / 376.7 MB, free: 10.01 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.871e-05/0.2538, allocations: 4 kB / 376.7 MB, free: 10.01 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: 250 * Number of variables: 250 Notification: Performance of Generate backend data structure: time 0.002311/0.2561, allocations: 1.477 MB / 378.2 MB, free: 9.227 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.765e-05/0.2561, allocations: 15.47 kB / 378.2 MB, free: 9.223 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007526/0.2569, allocations: 196.4 kB / 378.4 MB, free: 9.156 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001005/0.2579, allocations: 0.7577 MB / 379.2 MB, free: 8.82 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.673e-05/0.258, allocations: 75.69 kB / 379.2 MB, free: 8.816 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001236/0.2581, allocations: 97.12 kB / 379.3 MB, free: 8.816 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001495/0.2596, allocations: 0.9379 MB / 380.3 MB, free: 8.699 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.217e-05/0.2597, allocations: 10.62 kB / 380.3 MB, free: 8.695 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.794e-05/0.2597, allocations: 43.28 kB / 380.3 MB, free: 8.691 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.04e-05/0.2598, allocations: 27.8 kB / 380.4 MB, free: 8.688 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001233/0.261, allocations: 0.6479 MB / 381 MB, free: 8.516 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004505/0.2655, allocations: 3.951 MB / 385 MB, free: 5.934 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006452/0.2662, allocations: 440.3 kB / 385.4 MB, free: 5.68 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005742/0.2668, allocations: 271.2 kB / 385.6 MB, free: 5.594 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.971e-05/0.2668, allocations: 4.594 kB / 385.6 MB, free: 5.594 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.199e-05/0.2668, allocations: 42.5 kB / 385.7 MB, free: 5.551 MB / 302.1 MB Notification: Performance of pre-optimization done (n=41): time 2.184e-06/0.2668, allocations: 0 / 385.7 MB, free: 5.551 MB / 302.1 MB Notification: Performance of matching and sorting (n=45): time 0.002688/0.2695, allocations: 1.536 MB / 387.2 MB, free: 4.562 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.284e-05/0.2696, allocations: 86.84 kB / 387.3 MB, free: 4.465 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001022/0.2706, allocations: 0.8455 MB / 388.2 MB, free: 4.094 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.884e-05/0.2707, allocations: 42.83 kB / 388.2 MB, free: 4.051 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002742/0.2709, allocations: 0.5682 MB / 388.8 MB, free: 3.602 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.52e-05/0.271, allocations: 158 kB / 388.9 MB, free: 3.48 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001731/0.2712, allocations: 134.2 kB / 389.1 MB, free: 3.398 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.017e-05/0.2713, allocations: 333.5 kB / 389.4 MB, free: 3.082 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000345/0.2716, allocations: 169.9 kB / 389.5 MB, free: 3.027 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004363/0.2721, allocations: 472.8 kB / 390 MB, free: 2.582 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007963/0.2729, allocations: 0.6787 MB / 390.7 MB, free: 2.051 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.239e-06/0.2729, allocations: 2.844 kB / 390.7 MB, free: 2.051 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001294/0.2742, allocations: 0.7924 MB / 391.5 MB, free: 1.746 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.519e-05/0.2742, allocations: 9.125 kB / 391.5 MB, free: 1.746 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.532e-05/0.2742, allocations: 13 kB / 391.5 MB, free: 1.746 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002535/0.2745, allocations: 86.06 kB / 391.6 MB, free: 1.711 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005133/0.275, allocations: 154.3 kB / 391.7 MB, free: 1.707 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002077/0.2771, allocations: 3.142 MB / 394.9 MB, free: 14.64 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006185/0.2777, allocations: 44.59 kB / 394.9 MB, free: 14.62 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.28e-05/0.2778, allocations: 35.41 kB / 395 MB, free: 14.62 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * 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 (85): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,5,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004174/0.2782, allocations: 265 kB / 395.2 MB, free: 14.41 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001418/0.2784, allocations: 97.94 kB / 395.3 MB, free: 14.36 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009831/0.2794, allocations: 0.4956 MB / 395.8 MB, free: 14.13 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.506e-06/0.2794, allocations: 12.7 kB / 395.8 MB, free: 14.13 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.907e-06/0.2794, allocations: 1.312 kB / 395.8 MB, free: 14.13 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.739e-06/0.2794, allocations: 0 / 395.8 MB, free: 14.13 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002238/0.2816, allocations: 1.48 MB / 397.3 MB, free: 13.32 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.272e-06/0.2817, allocations: 2.188 kB / 397.3 MB, free: 13.32 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003141/0.282, allocations: 69.89 kB / 397.4 MB, free: 13.31 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001931/0.2822, allocations: 78.48 kB / 397.4 MB, free: 13.27 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.66e-05/0.2822, allocations: 8.125 kB / 397.5 MB, free: 13.26 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002222/0.2845, allocations: 3.132 MB / 400.6 MB, free: 10.1 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.706e-06/0.2845, allocations: 3.312 kB / 400.6 MB, free: 10.1 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001317/0.2858, allocations: 0.8014 MB / 401.4 MB, free: 9.582 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002891/0.2861, allocations: 196.6 kB / 401.6 MB, free: 9.395 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001091/0.2862, allocations: 13.56 kB / 401.6 MB, free: 9.387 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004472/0.2867, allocations: 32.81 kB / 401.6 MB, free: 9.371 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.119e-05/0.2868, allocations: 44.33 kB / 401.7 MB, free: 9.344 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.423e-05/0.2868, allocations: 10 kB / 401.7 MB, free: 9.344 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0007916/0.2876, allocations: 0.5752 MB / 402.3 MB, free: 9.016 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2876, allocations: 0.9375 kB / 402.3 MB, free: 9.016 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0008998/0.2885, allocations: 208.2 kB / 402.5 MB, free: 8.996 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcse.inertiaRotor.w,dcse.la.i,quadraticLoadTorque.phi) * 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 (39): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,5,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002135/0.2887, allocations: 123.3 kB / 402.6 MB, free: 8.898 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001266/0.29, allocations: 0.7245 MB / 403.3 MB, free: 8.465 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.867e-06/0.29, allocations: 3.375 kB / 403.3 MB, free: 8.465 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006154/0.2906, allocations: 451.8 kB / 403.8 MB, free: 8.141 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001124/0.2918, allocations: 219.8 kB / 404 MB, free: 8.031 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002834/0.2946, allocations: 1.805 MB / 405.8 MB, free: 6.867 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006015/0.2952, allocations: 1.013 MB / 406.8 MB, free: 6.031 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001521/0.2954, allocations: 60.47 kB / 406.8 MB, free: 6.023 MB / 318.1 MB Notification: Performance of SimCode: time 4.91e-07/0.2954, allocations: 0 / 406.8 MB, free: 6.023 MB / 318.1 MB Notification: Performance of Templates: time 0.02492/0.3203, allocations: 21.34 MB / 428.2 MB, free: 1.832 MB / 334.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCSE_SinglePhase/DCSE_SinglePhase.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches