Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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_cpp_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_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009898/0.0009898, allocations: 194.6 kB / 18.07 MB, free: 3.641 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.229/1.229, allocations: 226.5 MB / 245.3 MB, free: 6.496 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007548/0.0007546, allocations: 96.55 kB / 297.4 MB, free: 6.676 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002155/0.0002156, allocations: 8 kB / 357.4 MB, free: 10.72 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1871/0.1873, allocations: 51.29 MB / 408.7 MB, free: 27.69 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1067/0.2941, allocations: 100.4 MB / 0.4971 GB, free: 7.168 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002367/0.2944, allocations: 85.73 kB / 0.4972 GB, free: 7.086 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2124/0.5068, allocations: 28.7 MB / 0.5252 GB, free: 87.6 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.383e-06/0.5068, allocations: 0 / 0.5252 GB, free: 87.6 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.659e-05/0.5069, allocations: 28 kB / 0.5252 GB, free: 87.57 MB / 378.7 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.001685/0.5086, allocations: 1.275 MB / 0.5265 GB, free: 86.25 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.31e-05/0.5086, allocations: 15.97 kB / 0.5265 GB, free: 86.23 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000614/0.5092, allocations: 203.3 kB / 0.5267 GB, free: 86.03 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001102/0.5103, allocations: 0.8381 MB / 0.5275 GB, free: 85.15 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.026e-05/0.5104, allocations: 74 kB / 0.5276 GB, free: 85.08 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001046/0.5105, allocations: 103.9 kB / 0.5277 GB, free: 84.98 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001299/0.5118, allocations: 0.9464 MB / 0.5286 GB, free: 84 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.276e-05/0.5119, allocations: 7.938 kB / 0.5286 GB, free: 84 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.928e-05/0.5119, allocations: 40 kB / 0.5287 GB, free: 83.96 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.397e-05/0.512, allocations: 24 kB / 0.5287 GB, free: 83.93 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001057/0.513, allocations: 0.6598 MB / 0.5293 GB, free: 83.27 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004043/0.5171, allocations: 3.95 MB / 0.5332 GB, free: 79.11 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005727/0.5177, allocations: 471.1 kB / 0.5336 GB, free: 78.62 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004775/0.5182, allocations: 288.9 kB / 0.5339 GB, free: 78.34 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.908e-05/0.5182, allocations: 4 kB / 0.5339 GB, free: 78.33 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.659e-05/0.5182, allocations: 46.5 kB / 0.534 GB, free: 78.28 MB / 378.7 MB Notification: Performance of pre-optimization done (n=43): time 2.435e-06/0.5182, allocations: 0 / 0.534 GB, free: 78.28 MB / 378.7 MB Notification: Performance of matching and sorting (n=48): time 0.002609/0.5208, allocations: 1.542 MB / 0.5355 GB, free: 76.66 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.004e-05/0.5209, allocations: 81.55 kB / 0.5355 GB, free: 76.56 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008726/0.5218, allocations: 0.8059 MB / 0.5363 GB, free: 75.75 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.641e-05/0.5218, allocations: 33.7 kB / 0.5364 GB, free: 75.71 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002297/0.5221, allocations: 0.5605 MB / 0.5369 GB, free: 75.14 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.532e-05/0.5221, allocations: 169.5 kB / 0.5371 GB, free: 74.97 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.502e-05/0.5222, allocations: 16 kB / 0.5371 GB, free: 74.95 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.361e-05/0.5222, allocations: 337.9 kB / 0.5374 GB, free: 74.62 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000314/0.5226, allocations: 189.9 kB / 0.5376 GB, free: 74.43 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003913/0.523, allocations: 482.9 kB / 0.538 GB, free: 73.83 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007549/0.5237, allocations: 0.7 MB / 0.5387 GB, free: 72.99 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.999e-06/0.5237, allocations: 4 kB / 0.5387 GB, free: 72.99 MB / 378.7 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.001157/0.5249, allocations: 0.8286 MB / 0.5395 GB, free: 72.14 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.81e-05/0.5249, allocations: 8 kB / 0.5395 GB, free: 72.14 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.124e-05/0.5249, allocations: 12 kB / 0.5396 GB, free: 72.12 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002627/0.5252, allocations: 101.9 kB / 0.5397 GB, free: 72.02 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004712/0.5257, allocations: 159.7 kB / 0.5398 GB, free: 71.86 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001688/0.5274, allocations: 3.006 MB / 0.5427 GB, free: 68.6 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005531/0.528, allocations: 43.95 kB / 0.5428 GB, free: 68.55 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4e-05/0.528, allocations: 43.94 kB / 0.5428 GB, free: 68.51 MB / 378.7 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 (86): * Single equations (assignments): 84 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 7,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003724/0.5284, allocations: 265.5 kB / 0.5431 GB, free: 68.24 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.426e-05/0.5285, allocations: 90.88 kB / 0.5432 GB, free: 68.15 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009079/0.5294, allocations: 0.5456 MB / 0.5437 GB, free: 67.59 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.248e-06/0.5294, allocations: 8 kB / 0.5437 GB, free: 67.58 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.005e-06/0.5294, allocations: 0 / 0.5437 GB, free: 67.58 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.721e-06/0.5294, allocations: 7.922 kB / 0.5437 GB, free: 67.57 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001807/0.5312, allocations: 1.505 MB / 0.5452 GB, free: 65.98 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.018e-06/0.5313, allocations: 0 / 0.5452 GB, free: 65.98 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003107/0.5316, allocations: 79.83 kB / 0.5453 GB, free: 65.9 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002093/0.5318, allocations: 85.89 kB / 0.5453 GB, free: 65.81 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.661e-05/0.5318, allocations: 12 kB / 0.5454 GB, free: 65.8 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001557/0.5334, allocations: 2.985 MB / 0.5483 GB, free: 62.55 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.864e-06/0.5334, allocations: 0 / 0.5483 GB, free: 62.55 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001129/0.5346, allocations: 0.8715 MB / 0.5491 GB, free: 61.63 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002279/0.5348, allocations: 196 kB / 0.5493 GB, free: 61.42 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.296e-05/0.5349, allocations: 15.98 kB / 0.5493 GB, free: 61.41 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004071/0.5353, allocations: 35.98 kB / 0.5494 GB, free: 61.37 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.781e-05/0.5354, allocations: 43.83 kB / 0.5494 GB, free: 61.33 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.471e-05/0.5354, allocations: 12 kB / 0.5494 GB, free: 61.32 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0005921/0.536, allocations: 0.542 MB / 0.5499 GB, free: 60.78 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.536, allocations: 0 / 0.5499 GB, free: 60.78 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008368/0.5369, allocations: 255.9 kB / 0.5502 GB, free: 60.53 MB / 378.7 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 (40): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 7,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003396/0.5372, allocations: 294.6 kB / 0.5505 GB, free: 60.24 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001012/0.5382, allocations: 0.7429 MB / 0.5512 GB, free: 59.47 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.5383, allocations: 128 / 0.5512 GB, free: 59.47 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005466/0.5388, allocations: 480.8 kB / 0.5517 GB, free: 58.97 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001157/0.54, allocations: 211.6 kB / 0.5519 GB, free: 58.77 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002308/0.5423, allocations: 2.191 MB / 0.554 GB, free: 56.52 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000367/0.5427, allocations: 1.017 MB / 0.555 GB, free: 55.48 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001519/0.5428, allocations: 67.42 kB / 0.5551 GB, free: 55.41 MB / 378.7 MB Notification: Performance of SimCode: time 4.51e-07/0.5428, allocations: 0 / 0.5551 GB, free: 55.41 MB / 378.7 MB Notification: Performance of Templates: time 0.01871/0.5616, allocations: 22.11 MB / 0.5766 GB, free: 33.33 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches