Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Electrical.MultiSensorTest.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Electrical.MultiSensorTest,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Electrical_MultiSensorTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Electrical.MultiSensorTest,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Electrical_MultiSensorTest",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008794/0.0008797, allocations: 92.78 kB / 16.99 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009532/0.0009532, allocations: 203.8 kB / 17.9 MB, free: 5.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.376/1.376, allocations: 227.3 MB / 245.9 MB, free: 10.31 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2578/0.2578, allocations: 45.92 MB / 344 MB, free: 12.09 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002785/0.0002785, allocations: 4 kB / 418.1 MB, free: 20.75 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1358/0.1361, allocations: 63.46 MB / 481.5 MB, free: 5.273 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.MultiSensorTest): time 0.009844/0.146, allocations: 9.368 MB / 490.9 MB, free: 11.86 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.006968/0.153, allocations: 3.137 MB / 494 MB, free: 8.715 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002243/0.1552, allocations: 59.81 kB / 494.1 MB, free: 8.656 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002064/0.1573, allocations: 485.2 kB / 494.5 MB, free: 8.18 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004232/0.1616, allocations: 0.9543 MB / 495.5 MB, free: 7.223 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002898/0.1645, allocations: 1.028 MB / 496.5 MB, free: 6.199 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005345/0.1699, allocations: 3.158 MB / 499.7 MB, free: 3.035 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01371/0.1836, allocations: 7.433 MB / 0.4952 GB, free: 11.52 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003019/0.1866, allocations: 1.67 MB / 0.4969 GB, free: 9.844 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00331/0.19, allocations: 2.031 MB / 0.4989 GB, free: 7.805 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007498/0.1908, allocations: 275.9 kB / 0.4991 GB, free: 7.535 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001367/0.1921, allocations: 447.7 kB / 0.4995 GB, free: 7.098 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008451/0.193, allocations: 1.032 MB / 0.5005 GB, free: 6.062 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001087/0.1941, allocations: 0.9562 MB / 0.5015 GB, free: 5.098 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.3113/0.5054, allocations: 7.132 MB / 0.5084 GB, free: 19.63 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.581e-06/0.5055, allocations: 0.9375 kB / 0.5084 GB, free: 19.63 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.847e-06/0.5055, allocations: 0 / 0.5084 GB, free: 19.63 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003346/0.5058, allocations: 0 / 0.5084 GB, free: 19.63 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1308 * Number of variables: 1308 Notification: Performance of Generate backend data structure: time 0.01821/0.524, allocations: 5.213 MB / 0.5135 GB, free: 17.8 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.292e-05/0.5241, allocations: 9.062 kB / 0.5135 GB, free: 17.8 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003987/0.5281, allocations: 0.6918 MB / 0.5142 GB, free: 17.73 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02185/0.55, allocations: 3.589 MB / 0.5177 GB, free: 17.44 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008846/0.5589, allocations: 2.775 MB / 0.5204 GB, free: 16.93 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005858/0.5595, allocations: 368.8 kB / 0.5208 GB, free: 16.92 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003044/0.5625, allocations: 489.5 kB / 0.5213 GB, free: 16.92 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02349/0.586, allocations: 7.386 MB / 0.5285 GB, free: 15.2 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002777/0.5864, allocations: 8.719 kB / 0.5285 GB, free: 15.2 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001484/0.5879, allocations: 199.4 kB / 0.5287 GB, free: 15.2 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003593/0.5883, allocations: 279.2 kB / 0.5289 GB, free: 15.16 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01514/0.6034, allocations: 6.899 MB / 0.5357 GB, free: 13.18 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04782/0.6513, allocations: 23.2 MB / 0.5583 GB, free: 6.766 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01431/0.6656, allocations: 11.81 MB / 0.5699 GB, free: 9.469 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004891/0.6662, allocations: 226.6 kB / 0.5701 GB, free: 9.227 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004336/0.6705, allocations: 2.055 MB / 0.5721 GB, free: 7.094 MB / 414.1 MB Notification: Performance of pre-optimization done (n=288): time 1.099e-05/0.6706, allocations: 0 / 0.5721 GB, free: 7.094 MB / 414.1 MB Notification: Performance of matching and sorting (n=288): time 0.01115/0.6817, allocations: 5.131 MB / 0.5771 GB, free: 1.902 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003808/0.6822, allocations: 0.5025 MB / 0.5776 GB, free: 1.289 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00477/0.687, allocations: 2.106 MB / 0.5796 GB, free: 15.19 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006762/0.6877, allocations: 85.69 kB / 0.5797 GB, free: 15.1 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002647/0.6903, allocations: 2.037 MB / 0.5817 GB, free: 13.05 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001628/0.692, allocations: 0.9647 MB / 0.5827 GB, free: 12.1 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005973/0.6926, allocations: 76 kB / 0.5827 GB, free: 12.02 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0004124/0.693, allocations: 462 kB / 0.5832 GB, free: 11.57 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0034/0.6964, allocations: 1.623 MB / 0.5848 GB, free: 9.941 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004858/0.7013, allocations: 2.912 MB / 0.5876 GB, free: 6.488 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004429/0.7058, allocations: 2.198 MB / 0.5897 GB, free: 4.328 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.908e-05/0.7059, allocations: 12 kB / 0.5898 GB, free: 4.316 MB / 430.1 MB Notification: Performance of matching and sorting (n=484) (initialization): time 0.01049/0.7164, allocations: 5.066 MB / 0.5947 GB, free: 15.47 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.843e-05/0.7165, allocations: 20 kB / 0.5947 GB, free: 15.45 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.044e-05/0.7166, allocations: 42.52 kB / 0.5948 GB, free: 15.41 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001011/0.7176, allocations: 331.2 kB / 0.5951 GB, free: 15.07 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003215/0.7208, allocations: 0.8394 MB / 0.5959 GB, free: 14.29 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007631/0.7285, allocations: 7.226 MB / 0.603 GB, free: 6.582 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00378/0.7323, allocations: 488.1 kB / 0.6034 GB, free: 6.102 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008566/0.7332, allocations: 172 kB / 0.6036 GB, free: 5.934 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 177 * Number of states: 0 () * Number of discrete variables: 36 ($PRE.meanpowerA.y_last,meanpowerA.y_last,$whenCondition12,$whenCondition11,$whenCondition10,$PRE.rmsiA.mean.y_last,rmsiA.mean.y_last,$PRE.rmsvA.mean.y_last,rmsvA.mean.y_last,$PRE.meanpowerM[1].y_last,meanpowerM[1].y_last,$PRE.meanpowerM[2].y_last,meanpowerM[2].y_last,$PRE.meanpowerM[3].y_last,meanpowerM[3].y_last,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.rmsiM[3].mean.y_last,rmsiM[3].mean.y_last,$PRE.rmsiM[2].mean.y_last,rmsiM[2].mean.y_last,$PRE.rmsiM[1].mean.y_last,rmsiM[1].mean.y_last,$PRE.rmsvM[3].mean.y_last,rmsvM[3].mean.y_last,$PRE.rmsvM[2].mean.y_last,rmsvM[2].mean.y_last,$PRE.rmsvM[1].mean.y_last,rmsvM[1].mean.y_last) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (464): * Single equations (assignments): 460 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 5,(1,100.0%) 5,(1,100.0%) 5,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004316/0.7375, allocations: 1.719 MB / 0.6053 GB, free: 4.266 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001012/0.7385, allocations: 257 kB / 0.6055 GB, free: 4.012 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005829/0.7444, allocations: 3.067 MB / 0.6085 GB, free: 0.9336 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.954e-05/0.7444, allocations: 31.95 kB / 0.6085 GB, free: 0.9023 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.861e-05/0.7445, allocations: 8 kB / 0.6085 GB, free: 0.8945 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.011e-05/0.7445, allocations: 19.94 kB / 0.6086 GB, free: 0.875 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01886/0.7634, allocations: 8.673 MB / 0.617 GB, free: 8.203 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.58e-05/0.7635, allocations: 4 kB / 0.617 GB, free: 8.199 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002212/0.7657, allocations: 0.5113 MB / 0.6175 GB, free: 7.715 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009429/0.7666, allocations: 290.8 kB / 0.6178 GB, free: 7.422 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003788/0.767, allocations: 79.95 kB / 0.6179 GB, free: 7.344 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008442/0.7755, allocations: 7.15 MB / 0.6249 GB, free: 15.7 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.805e-06/0.7756, allocations: 7.469 kB / 0.6249 GB, free: 15.69 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0112/0.7868, allocations: 6.011 MB / 0.6307 GB, free: 9.523 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002205/0.789, allocations: 0.6652 MB / 0.6314 GB, free: 8.836 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008843/0.7899, allocations: 79.97 kB / 0.6315 GB, free: 8.758 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001965/0.7919, allocations: 175.8 kB / 0.6316 GB, free: 8.586 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004842/0.7924, allocations: 209.6 kB / 0.6318 GB, free: 8.387 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002541/0.7927, allocations: 91.97 kB / 0.6319 GB, free: 8.297 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.002761/0.7955, allocations: 1.412 MB / 0.6333 GB, free: 6.895 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.7955, allocations: 0 / 0.6333 GB, free: 6.895 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.005099/0.8006, allocations: 1.264 MB / 0.6345 GB, free: 5.625 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 18 (sineVoltageQS.pin_p.reference.gamma,sineVoltageQM.plug_p.reference.gamma,inductorM.inductor[1].i,inductorM.inductor[2].i,inductorM.inductor[3].i,rmsvM[1].mean.x,rmsvM[2].mean.x,rmsvM[3].mean.x,rmsiM[1].mean.x,rmsiM[2].mean.x,rmsiM[3].mean.x,meanpowerM[1].x,meanpowerM[2].x,meanpowerM[3].x,inductorA.i,rmsvA.mean.x,rmsiA.mean.x,meanpowerA.x) * Number of discrete variables: 24 ($whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,rmsvM[1].mean.y_last,rmsvM[2].mean.y_last,rmsvM[3].mean.y_last,rmsiM[1].mean.y_last,rmsiM[2].mean.y_last,rmsiM[3].mean.y_last,meanpowerM[1].y_last,meanpowerM[2].y_last,meanpowerM[3].y_last,$whenCondition12,$whenCondition11,$whenCondition10,rmsvA.mean.y_last,rmsiA.mean.y_last,meanpowerA.y_last) * Number of discrete states: 12 (meanpowerA.x,rmsiA.mean.x,rmsvA.mean.x,rmsvM[1].mean.x,rmsvM[2].mean.x,rmsvM[3].mean.x,rmsiM[1].mean.x,rmsiM[2].mean.x,rmsiM[3].mean.x,meanpowerM[1].x,meanpowerM[2].x,meanpowerM[3].x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (289): * Single equations (assignments): 273 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 12 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 5,(1,100.0%) 5,(1,100.0%) 5,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.009921/0.8105, allocations: 7.408 MB / 0.6418 GB, free: 14.1 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.007347/0.8179, allocations: 4.38 MB / 0.646 GB, free: 9.797 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.342e-05/0.818, allocations: 0.5938 kB / 0.646 GB, free: 9.797 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003676/0.8216, allocations: 2.237 MB / 0.6482 GB, free: 7.559 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002923/0.8246, allocations: 428.5 kB / 0.6486 GB, free: 7.148 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04426/0.8689, allocations: 40.4 MB / 0.6881 GB, free: 13.88 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005599/0.8745, allocations: 3.453 MB / 0.6915 GB, free: 10.39 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.003431/0.878, allocations: 1.115 MB / 0.6926 GB, free: 9.27 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002605/0.8806, allocations: 1.675 MB / 0.6942 GB, free: 7.598 MB / 0.5294 GB Notification: Performance of SimCode: time 1.172e-06/0.8806, allocations: 4 kB / 0.6942 GB, free: 7.594 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4327/1.313, allocations: 63.79 MB / 0.7565 GB, free: 178.3 MB / 0.545 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001574/1.314, allocations: 199.6 kB / 0.7567 GB, free: 178.1 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.431/4.745, allocations: 7.312 kB / 0.7567 GB, free: 178.1 MB / 0.545 GB (rm -f ModelicaTest_trunk_ModelicaTest.Electrical.MultiSensorTest.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Electrical.MultiSensorTest.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Electrical.MultiSensorTest.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Electrical.MultiSensorTest.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Electrical.MultiSensorTest_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Electrical_MultiSensorTest_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Electrical_MultiSensorTest.fmu > ModelicaTest_trunk_ModelicaTest.Electrical.MultiSensorTest.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Electrical.MultiSensorTest_res.mat does not exist to compare? outputFormat=mat