Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.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_Start,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_Start") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start,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_Start") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001422/0.001422, allocations: 118.2 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001949/0.001949, allocations: 198 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.411/1.411, allocations: 227.4 MB / 246.9 MB, free: 10.51 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001099/0.001099, allocations: 63.89 kB / 358.7 MB, free: 12.94 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2569/0.258, allocations: 50.54 MB / 409.3 MB, free: 1.625 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start): time 0.00885/0.2669, allocations: 8.093 MB / 417.3 MB, free: 9.492 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004066/0.271, allocations: 2.665 MB / 420 MB, free: 6.82 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006925/0.2717, allocations: 27.94 kB / 420 MB, free: 6.793 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001435/0.2732, allocations: 0.5753 MB / 420.6 MB, free: 6.215 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001005/0.2742, allocations: 0.4886 MB / 421.1 MB, free: 5.723 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005019/0.2747, allocations: 255.7 kB / 421.4 MB, free: 5.473 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001127/0.2759, allocations: 1.475 MB / 422.8 MB, free: 3.992 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006779/0.2766, allocations: 0.5846 MB / 423.4 MB, free: 3.383 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006189/0.2772, allocations: 0.5564 MB / 424 MB, free: 2.824 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005603/0.2778, allocations: 0.6027 MB / 424.6 MB, free: 2.219 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001502/0.2779, allocations: 136 kB / 424.7 MB, free: 2.086 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003025/0.2782, allocations: 184 kB / 424.9 MB, free: 1.906 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001964/0.2784, allocations: 279 kB / 425.2 MB, free: 1.633 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005313/0.279, allocations: 0.6609 MB / 425.8 MB, free: 0.9688 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001608/0.2806, allocations: 1.726 MB / 427.5 MB, free: 15.24 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.861e-06/0.2806, allocations: 0 / 427.5 MB, free: 15.24 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.2806, allocations: 0 / 427.5 MB, free: 15.24 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.775e-05/0.2806, allocations: 0 / 427.5 MB, free: 15.24 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 249 * Number of variables: 249 Notification: Performance of Generate backend data structure: time 0.002391/0.283, allocations: 1.453 MB / 429 MB, free: 13.73 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.545e-05/0.2831, allocations: 8.031 kB / 429 MB, free: 13.73 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006687/0.2838, allocations: 191.3 kB / 429.2 MB, free: 13.54 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001114/0.2849, allocations: 0.7379 MB / 429.9 MB, free: 12.75 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.216e-05/0.285, allocations: 73.94 kB / 430 MB, free: 12.68 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001302/0.2851, allocations: 103.9 kB / 430.1 MB, free: 12.58 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001506/0.2866, allocations: 0.9308 MB / 431 MB, free: 11.62 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.387e-05/0.2867, allocations: 3.938 kB / 431 MB, free: 11.62 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.012e-05/0.2868, allocations: 44 kB / 431.1 MB, free: 11.57 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.978e-05/0.2868, allocations: 24 kB / 431.1 MB, free: 11.55 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001192/0.288, allocations: 0.6286 MB / 431.7 MB, free: 10.93 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004773/0.2928, allocations: 3.891 MB / 435.6 MB, free: 6.805 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007071/0.2935, allocations: 447.9 kB / 436.1 MB, free: 6.344 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005594/0.2941, allocations: 273.3 kB / 436.3 MB, free: 6.074 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.167e-05/0.2941, allocations: 4.328 kB / 436.3 MB, free: 6.07 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.949e-05/0.2942, allocations: 38.89 kB / 436.4 MB, free: 6.023 MB / 350.1 MB Notification: Performance of pre-optimization done (n=40): time 2.564e-06/0.2942, allocations: 0 / 436.4 MB, free: 6.023 MB / 350.1 MB Notification: Performance of matching and sorting (n=44): time 0.002493/0.2967, allocations: 1.401 MB / 437.8 MB, free: 4.547 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.255e-05/0.2967, allocations: 81.11 kB / 437.8 MB, free: 4.449 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001047/0.2978, allocations: 0.8252 MB / 438.7 MB, free: 3.613 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.45e-05/0.2978, allocations: 37.7 kB / 438.7 MB, free: 3.57 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003986/0.2982, allocations: 0.5526 MB / 439.3 MB, free: 3.008 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001083/0.2984, allocations: 165.7 kB / 439.4 MB, free: 2.844 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001766/0.2985, allocations: 130.6 kB / 439.6 MB, free: 2.711 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001241/0.2987, allocations: 334 kB / 439.9 MB, free: 2.379 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003156/0.299, allocations: 161.9 kB / 440 MB, free: 2.223 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004931/0.2995, allocations: 460 kB / 440.5 MB, free: 1.637 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008439/0.3004, allocations: 0.67 MB / 441.2 MB, free: 0.832 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/0.3004, allocations: 0 / 441.2 MB, free: 0.832 MB / 350.1 MB Notification: Performance of matching and sorting (n=90) (initialization): time 0.001207/0.3016, allocations: 0.7705 MB / 441.9 MB, free: 52 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.96e-05/0.3016, allocations: 8 kB / 441.9 MB, free: 44 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.423e-05/0.3016, allocations: 12 kB / 441.9 MB, free: 32 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002695/0.3019, allocations: 85.94 kB / 442 MB, free: 15.94 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004755/0.3024, allocations: 151.7 kB / 442.2 MB, free: 15.79 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002327/0.3047, allocations: 3.134 MB / 445.3 MB, free: 12.37 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004622/0.3052, allocations: 40.05 kB / 445.3 MB, free: 12.33 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.241e-05/0.3053, allocations: 32 kB / 445.4 MB, free: 12.3 MB / 366.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 (84): * Single equations (assignments): 82 * 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.0003304/0.3056, allocations: 262.8 kB / 445.6 MB, free: 12.04 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001121/0.3057, allocations: 90.88 kB / 445.7 MB, free: 11.95 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008845/0.3066, allocations: 495.5 kB / 446.2 MB, free: 11.45 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.11e-06/0.3066, allocations: 4 kB / 446.2 MB, free: 11.44 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.836e-06/0.3066, allocations: 0 / 446.2 MB, free: 11.44 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.586e-06/0.3066, allocations: 7.984 kB / 446.2 MB, free: 11.43 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001962/0.3086, allocations: 1.435 MB / 447.7 MB, free: 9.918 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.66e-06/0.3086, allocations: 3.984 kB / 447.7 MB, free: 9.914 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002934/0.3089, allocations: 71.91 kB / 447.7 MB, free: 9.844 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002028/0.3091, allocations: 73.61 kB / 447.8 MB, free: 9.766 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.88e-05/0.3092, allocations: 12 kB / 447.8 MB, free: 9.754 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002252/0.3114, allocations: 3.123 MB / 450.9 MB, free: 6.359 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.425e-06/0.3115, allocations: 128 / 450.9 MB, free: 6.359 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001174/0.3126, allocations: 0.7777 MB / 451.7 MB, free: 5.535 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002434/0.3129, allocations: 192.1 kB / 451.9 MB, free: 5.328 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.647e-05/0.313, allocations: 19.94 kB / 451.9 MB, free: 5.309 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004071/0.3134, allocations: 23.97 kB / 451.9 MB, free: 5.285 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.375e-05/0.3135, allocations: 35.95 kB / 452 MB, free: 5.25 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.46e-05/0.3135, allocations: 16 kB / 452 MB, free: 5.234 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0006844/0.3142, allocations: 0.5615 MB / 452.6 MB, free: 4.676 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3142, allocations: 0 / 452.6 MB, free: 4.676 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007759/0.315, allocations: 211.9 kB / 452.8 MB, free: 4.469 MB / 366.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 (38): * Single equations (assignments): 36 * 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.0001961/0.3152, allocations: 123.4 kB / 452.9 MB, free: 4.34 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001095/0.3163, allocations: 0.6786 MB / 453.6 MB, free: 3.637 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.037e-06/0.3163, allocations: 4 kB / 453.6 MB, free: 3.633 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006113/0.3169, allocations: 446.5 kB / 454 MB, free: 3.172 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009606/0.3179, allocations: 238.5 kB / 454.2 MB, free: 2.941 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002526/0.3205, allocations: 1.698 MB / 455.9 MB, free: 1.191 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005319/0.321, allocations: 1.001 MB / 456.9 MB, free: 168 kB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003141/0.3213, allocations: 107.2 kB / 457 MB, free: 56 kB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001366/0.3215, allocations: 59.48 kB / 457.1 MB, free: 15.99 MB / 382.1 MB Notification: Performance of SimCode: time 4.31e-07/0.3215, allocations: 0 / 457.1 MB, free: 15.99 MB / 382.1 MB Notification: Performance of Templates: time 0.0194/0.3409, allocations: 10.68 MB / 467.8 MB, free: 5.438 MB / 382.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCSE_Start/DCSE_Start.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches