Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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 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: 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_3.2.3_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_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001207/0.001207, allocations: 113.3 kB / 18.4 MB, free: 4.699 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001174/0.001174, allocations: 189.3 kB / 19.33 MB, free: 3.781 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.214/1.214, allocations: 205.1 MB / 225.2 MB, free: 12.23 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001214/0.001214, allocations: 47.92 kB / 329.2 MB, free: 3.301 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07794/0.07917, allocations: 46.62 MB / 375.8 MB, free: 4.57 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.1746/0.2538, allocations: 8.173 MB / 384 MB, free: 9.598 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00458/0.2585, allocations: 2.728 MB / 386.7 MB, free: 7.984 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007642/0.2593, allocations: 24.84 kB / 386.7 MB, free: 7.98 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001353/0.2606, allocations: 0.5669 MB / 387.3 MB, free: 7.688 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009354/0.2616, allocations: 479.2 kB / 387.8 MB, free: 7.348 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004743/0.2621, allocations: 260.7 kB / 388 MB, free: 7.184 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001258/0.2633, allocations: 1.496 MB / 389.5 MB, free: 6.383 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007079/0.2641, allocations: 0.5885 MB / 390.1 MB, free: 6.109 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006037/0.2647, allocations: 0.5685 MB / 390.7 MB, free: 5.812 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006013/0.2653, allocations: 0.6088 MB / 391.3 MB, free: 5.484 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000174/0.2655, allocations: 140.6 kB / 391.4 MB, free: 5.484 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003415/0.2658, allocations: 181.1 kB / 391.6 MB, free: 5.473 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001694/0.266, allocations: 287.5 kB / 391.9 MB, free: 5.262 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004919/0.2665, allocations: 0.6745 MB / 392.6 MB, free: 4.832 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001694/0.2682, allocations: 1.751 MB / 394.3 MB, free: 4.164 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.17e-06/0.2682, allocations: 0.7969 kB / 394.3 MB, free: 4.164 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.2682, allocations: 5.344 kB / 394.3 MB, free: 4.16 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.871e-05/0.2682, allocations: 0.6562 kB / 394.3 MB, free: 4.16 MB / 318.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.002134/0.2704, allocations: 1.474 MB / 395.8 MB, free: 3.172 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.182e-05/0.2704, allocations: 13.39 kB / 395.8 MB, free: 3.168 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006139/0.271, allocations: 193 kB / 396 MB, free: 3.098 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00107/0.2721, allocations: 0.7566 MB / 396.8 MB, free: 2.566 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.959e-05/0.2722, allocations: 72.53 kB / 396.8 MB, free: 2.531 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001211/0.2723, allocations: 102.3 kB / 396.9 MB, free: 2.496 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00151/0.2738, allocations: 0.9465 MB / 397.9 MB, free: 2.062 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.206e-05/0.2739, allocations: 5.453 kB / 397.9 MB, free: 2.059 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.062e-05/0.2739, allocations: 41.47 kB / 397.9 MB, free: 2.027 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.315e-05/0.274, allocations: 24.75 kB / 397.9 MB, free: 2.027 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001196/0.2752, allocations: 0.6504 MB / 398.6 MB, free: 1.785 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004495/0.2797, allocations: 3.907 MB / 402.5 MB, free: 15.14 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006719/0.2804, allocations: 451.6 kB / 402.9 MB, free: 14.86 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005763/0.281, allocations: 280.9 kB / 403.2 MB, free: 14.73 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.041e-05/0.281, allocations: 4.125 kB / 403.2 MB, free: 14.73 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.523e-05/0.281, allocations: 41.3 kB / 403.3 MB, free: 14.68 MB / 334.1 MB Notification: Performance of pre-optimization done (n=41): time 1.924e-06/0.281, allocations: 0 / 403.3 MB, free: 14.68 MB / 334.1 MB Notification: Performance of matching and sorting (n=45): time 0.002693/0.2837, allocations: 1.551 MB / 404.8 MB, free: 13.59 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.838e-05/0.2838, allocations: 82.89 kB / 404.9 MB, free: 13.49 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001088/0.2849, allocations: 0.8374 MB / 405.7 MB, free: 13.02 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.282e-05/0.285, allocations: 36.89 kB / 405.8 MB, free: 12.98 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003762/0.2853, allocations: 0.5638 MB / 406.3 MB, free: 12.47 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001154/0.2855, allocations: 162.5 kB / 406.5 MB, free: 12.33 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001632/0.2856, allocations: 129.1 kB / 406.6 MB, free: 12.25 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001155/0.2857, allocations: 333.2 kB / 406.9 MB, free: 11.92 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003403/0.2861, allocations: 175.5 kB / 407.1 MB, free: 11.84 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000522/0.2866, allocations: 484.4 kB / 407.6 MB, free: 11.34 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008916/0.2875, allocations: 0.6747 MB / 408.3 MB, free: 10.75 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.394e-06/0.2875, allocations: 2.938 kB / 408.3 MB, free: 10.75 MB / 334.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001277/0.2888, allocations: 0.7961 MB / 409.1 MB, free: 10.32 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.144e-05/0.2889, allocations: 9.594 kB / 409.1 MB, free: 10.32 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.181e-05/0.2889, allocations: 14.11 kB / 409.1 MB, free: 10.32 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002481/0.2891, allocations: 82.59 kB / 409.2 MB, free: 10.27 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004716/0.2896, allocations: 159.6 kB / 409.3 MB, free: 10.23 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002282/0.2919, allocations: 3.146 MB / 412.5 MB, free: 7.059 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005419/0.2925, allocations: 33.48 kB / 412.5 MB, free: 7.043 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.538e-05/0.2925, allocations: 36.81 kB / 412.5 MB, free: 7.035 MB / 334.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.000366/0.2929, allocations: 272.8 kB / 412.8 MB, free: 6.812 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001189/0.293, allocations: 90.28 kB / 412.9 MB, free: 6.766 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000933/0.294, allocations: 0.4978 MB / 413.4 MB, free: 6.461 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.502e-06/0.294, allocations: 5.594 kB / 413.4 MB, free: 6.461 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.567e-06/0.294, allocations: 1.219 kB / 413.4 MB, free: 6.461 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.334e-06/0.294, allocations: 3.984 kB / 413.4 MB, free: 6.457 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002116/0.2961, allocations: 1.462 MB / 414.9 MB, free: 5.359 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.378e-06/0.2961, allocations: 2.5 kB / 414.9 MB, free: 5.359 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003128/0.2965, allocations: 83.7 kB / 414.9 MB, free: 5.332 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001867/0.2967, allocations: 68.55 kB / 415 MB, free: 5.293 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.675e-05/0.2967, allocations: 9.25 kB / 415 MB, free: 5.289 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002194/0.2989, allocations: 3.13 MB / 418.2 MB, free: 2.125 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.096e-06/0.2989, allocations: 2.344 kB / 418.2 MB, free: 2.125 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001198/0.3001, allocations: 0.7998 MB / 419 MB, free: 1.594 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000268/0.3004, allocations: 209.9 kB / 419.2 MB, free: 1.395 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.747e-05/0.3005, allocations: 13.53 kB / 419.2 MB, free: 1.387 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004272/0.3009, allocations: 31.12 kB / 419.2 MB, free: 1.371 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.395e-05/0.301, allocations: 27.31 kB / 419.2 MB, free: 1.359 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.519e-05/0.3011, allocations: 18.64 kB / 419.2 MB, free: 1.352 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0007116/0.3018, allocations: 0.5715 MB / 419.8 MB, free: 1.027 MB / 334.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3018, allocations: 1.438 kB / 419.8 MB, free: 1.027 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0008435/0.3026, allocations: 207.8 kB / 420 MB, free: 1.008 MB / 334.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.0002021/0.3028, allocations: 126.8 kB / 420.1 MB, free: 0.8984 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001138/0.304, allocations: 0.7125 MB / 420.9 MB, free: 452 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.266e-06/0.304, allocations: 3.938 kB / 420.9 MB, free: 448 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006182/0.3046, allocations: 445.3 kB / 421.3 MB, free: 112 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001018/0.3057, allocations: 241.5 kB / 421.5 MB, free: 15.97 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002615/0.3083, allocations: 1.77 MB / 423.3 MB, free: 14.74 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005737/0.3089, allocations: 1.013 MB / 424.3 MB, free: 13.7 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001459/0.309, allocations: 63.42 kB / 424.4 MB, free: 13.64 MB / 350.1 MB Notification: Performance of SimCode: time 4.01e-07/0.309, allocations: 0 / 424.4 MB, free: 13.64 MB / 350.1 MB Notification: Performance of Templates: time 0.02129/0.3303, allocations: 21.4 MB / 445.8 MB, free: 8.207 MB / 366.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.sim & ./Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/DCMachines/DCSE_SinglePhase/DCSE_SinglePhase.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches