Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.QuasiStatic.MultiPhase.SerialConnection.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Electrical.QuasiStatic.MultiPhase.SerialConnection,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Electrical_QuasiStatic_MultiPhase_SerialConnection",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Electrical.QuasiStatic.MultiPhase.SerialConnection,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Electrical_QuasiStatic_MultiPhase_SerialConnection",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002403/0.002409, allocations: 186.1 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.257/2.257, allocations: 205.4 MB / 222.5 MB, free: 13.85 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001677/0.001677, allocations: 94.84 kB / 270.9 MB, free: 13.38 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.302/0.302, allocations: 43.55 MB / 362.7 MB, free: 11.32 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004813/0.0004813, allocations: 12 kB / 431.5 MB, free: 20.18 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1347/0.1352, allocations: 58.86 MB / 490.3 MB, free: 9.246 MB / 330.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.QuasiStatic.MultiPhase.SerialConnection): time 0.02891/0.1642, allocations: 15.94 MB / 0.4944 GB, free: 9.246 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.01512/0.1794, allocations: 4.735 MB / 0.499 GB, free: 4.496 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004471/0.1839, allocations: 127.6 kB / 0.4991 GB, free: 4.371 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004972/0.189, allocations: 0.9557 MB / 0.5001 GB, free: 3.41 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.009981/0.199, allocations: 1.878 MB / 0.5019 GB, free: 1.527 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005435/0.2045, allocations: 0.9587 MB / 0.5028 GB, free: 0.5703 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.01826/0.2227, allocations: 7.89 MB / 0.5105 GB, free: 8.664 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.4356/0.6584, allocations: 21.12 MB / 0.5312 GB, free: 9.305 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01446/0.673, allocations: 4.163 MB / 0.5352 GB, free: 9.305 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01709/0.6901, allocations: 4.737 MB / 0.5399 GB, free: 9.305 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.005752/0.6959, allocations: 0.6857 MB / 0.5405 GB, free: 9.305 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009353/0.7054, allocations: 0.8311 MB / 0.5413 GB, free: 9.305 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.007868/0.7133, allocations: 2.262 MB / 0.5436 GB, free: 9.305 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.008298/0.7217, allocations: 2.36 MB / 0.5459 GB, free: 9.004 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.03868/0.7605, allocations: 19.8 MB / 0.5652 GB, free: 13.41 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.102e-06/0.7606, allocations: 6.406 kB / 0.5652 GB, free: 13.41 MB / 378.7 MB Notification: Performance of FrontEnd: time 4.268e-06/0.7606, allocations: 0 / 0.5652 GB, free: 13.41 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0008353/0.7614, allocations: 0 / 0.5652 GB, free: 13.41 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: 3365 * Number of variables: 3365 Notification: Performance of Generate backend data structure: time 0.05667/0.8181, allocations: 12.16 MB / 0.5771 GB, free: 2.633 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.415e-05/0.8182, allocations: 8.031 kB / 0.5771 GB, free: 2.625 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.008462/0.8267, allocations: 1.749 MB / 0.5788 GB, free: 1.664 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1046/0.9313, allocations: 12.48 MB / 0.591 GB, free: 5.461 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02507/0.9564, allocations: 6.674 MB / 0.5975 GB, free: 14.78 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001699/0.9582, allocations: 0.9023 MB / 0.5984 GB, free: 13.89 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007052/0.9653, allocations: 1.189 MB / 0.5995 GB, free: 12.71 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07225/1.038, allocations: 18.84 MB / 0.6179 GB, free: 9.859 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008302/1.038, allocations: 15.89 kB / 0.618 GB, free: 9.844 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005611/1.044, allocations: 0.4901 MB / 0.6184 GB, free: 9.367 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001202/1.045, allocations: 0.6934 MB / 0.6191 GB, free: 8.672 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06763/1.113, allocations: 19.71 MB / 0.6384 GB, free: 4.938 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1875/1.301, allocations: 62.15 MB / 0.6991 GB, free: 6.066 MB / 0.4949 GB Notification: Performance of preOpt comSubExp (simulation): time 0.7406/2.041, allocations: 20.08 MB / 0.7187 GB, free: 125.1 MB / 0.4949 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001151/2.042, allocations: 240 kB / 0.7189 GB, free: 125 MB / 0.4949 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001229/2.043, allocations: 106.7 kB / 0.719 GB, free: 124.9 MB / 0.4949 GB Notification: Performance of pre-optimization done (n=674): time 1.098e-05/2.043, allocations: 0 / 0.719 GB, free: 124.9 MB / 0.4949 GB Notification: Performance of matching and sorting (n=674): time 0.04812/2.091, allocations: 12.39 MB / 0.7311 GB, free: 122.5 MB / 0.4949 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.674e-05/2.091, allocations: 121.4 kB / 0.7312 GB, free: 122.5 MB / 0.4949 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02213/2.113, allocations: 8.591 MB / 0.7396 GB, free: 119.7 MB / 0.4949 GB Notification: Performance of collectPreVariables (initialization): time 0.001408/2.114, allocations: 134.4 kB / 0.7397 GB, free: 119.6 MB / 0.4949 GB Notification: Performance of collectInitialEqns (initialization): time 0.004594/2.119, allocations: 4.184 MB / 0.7438 GB, free: 116.4 MB / 0.4949 GB Notification: Performance of collectInitialBindings (initialization): time 0.003357/2.122, allocations: 2.261 MB / 0.746 GB, free: 114.6 MB / 0.4949 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001322/2.124, allocations: 160.3 kB / 0.7462 GB, free: 114.5 MB / 0.4949 GB Notification: Performance of setup shared object (initialization): time 0.0008234/2.125, allocations: 0.6415 MB / 0.7468 GB, free: 114.1 MB / 0.4949 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01188/2.137, allocations: 4.153 MB / 0.7509 GB, free: 112.7 MB / 0.4949 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01386/2.15, allocations: 7.188 MB / 0.7579 GB, free: 107.4 MB / 0.4949 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01424/2.165, allocations: 5.719 MB / 0.7635 GB, free: 105.2 MB / 0.4949 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001258/2.165, allocations: 27.03 kB / 0.7635 GB, free: 105.2 MB / 0.4949 GB Notification: Performance of matching and sorting (n=1034) (initialization): time 0.0348/2.2, allocations: 11.92 MB / 0.7751 GB, free: 100.8 MB / 0.4949 GB Notification: Performance of prepare postOptimizeDAE: time 9.256e-05/2.2, allocations: 48 kB / 0.7752 GB, free: 100.8 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002044/2.2, allocations: 103.4 kB / 0.7753 GB, free: 100.8 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001437/2.202, allocations: 401.6 kB / 0.7757 GB, free: 100.7 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01496/2.217, allocations: 2.111 MB / 0.7777 GB, free: 98.95 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008011/2.225, allocations: 8.803 MB / 0.7863 GB, free: 89.77 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01114/2.236, allocations: 1.395 MB / 0.7877 GB, free: 88.5 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002093/2.238, allocations: 399.8 kB / 0.7881 GB, free: 88.12 MB / 0.4949 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 457 * 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 (1028): * Single equations (assignments): 1022 * 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: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01221/2.25, allocations: 4.66 MB / 0.7926 GB, free: 84.25 MB / 0.4949 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001967/2.252, allocations: 0.7136 MB / 0.7933 GB, free: 83.52 MB / 0.4949 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04186/2.294, allocations: 10.98 MB / 0.804 GB, free: 72.7 MB / 0.4949 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.531e-05/2.294, allocations: 68 kB / 0.8041 GB, free: 72.63 MB / 0.4949 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.246e-05/2.294, allocations: 0 / 0.8041 GB, free: 72.63 MB / 0.4949 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002182/2.295, allocations: 43.81 kB / 0.8041 GB, free: 72.59 MB / 0.4949 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.9603/3.255, allocations: 158.4 MB / 0.9588 GB, free: 139.5 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0006247/3.256, allocations: 90.41 kB / 0.9589 GB, free: 139.5 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0155/3.271, allocations: 1.562 MB / 0.9605 GB, free: 139.4 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001961/3.273, allocations: 377 kB / 0.9608 GB, free: 139.3 MB / 0.5262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001955/3.275, allocations: 252.1 kB / 0.9611 GB, free: 139.2 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01056/3.286, allocations: 8.696 MB / 0.9695 GB, free: 131 MB / 0.5262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0001498/3.286, allocations: 139.4 kB / 0.9697 GB, free: 130.9 MB / 0.5262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06056/3.346, allocations: 34.5 MB / 1.003 GB, free: 93.33 MB / 0.5262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.008739/3.355, allocations: 2.032 MB / 1.005 GB, free: 91.45 MB / 0.5262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00322/3.359, allocations: 251.9 kB / 1.006 GB, free: 91.2 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009875/3.368, allocations: 0.5542 MB / 1.006 GB, free: 90.65 MB / 0.5262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002289/3.371, allocations: 0.7423 MB / 1.007 GB, free: 89.9 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009861/3.372, allocations: 315.9 kB / 1.007 GB, free: 89.59 MB / 0.5262 GB Notification: Performance of sorting global known variables: time 0.01569/3.388, allocations: 6.008 MB / 1.013 GB, free: 83.61 MB / 0.5262 GB Notification: Performance of sort global known variables: time 6.11e-07/3.388, allocations: 0 / 1.013 GB, free: 83.61 MB / 0.5262 GB Notification: Performance of remove unused functions: time 0.01465/3.402, allocations: 2.685 MB / 1.016 GB, free: 80.92 MB / 0.5262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 397 * Number of states: 1 (currentSource.plug_p.reference.gamma) * 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 (741): * Single equations (assignments): 735 * 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: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.04606/3.448, allocations: 51.47 MB / 1.066 GB, free: 25.81 MB / 0.5262 GB Notification: Performance of simCode: created initialization part: time 0.03364/3.482, allocations: 10.51 MB / 1.076 GB, free: 15.21 MB / 0.5262 GB Notification: Performance of simCode: created event and clocks part: time 0.0001531/3.482, allocations: 20.12 kB / 1.076 GB, free: 15.2 MB / 0.5262 GB Notification: Performance of simCode: created simulation system equations: time 0.01932/3.502, allocations: 5.458 MB / 1.082 GB, free: 9.676 MB / 0.5262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01792/3.52, allocations: 1.366 MB / 1.083 GB, free: 8.324 MB / 0.5262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6961/4.216, allocations: 155.3 MB / 1.235 GB, free: 67.36 MB / 0.5418 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01696/4.233, allocations: 7.81 MB / 1.242 GB, free: 64.65 MB / 0.5418 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0126/4.245, allocations: 4.237 MB / 1.246 GB, free: 61.25 MB / 0.5418 GB Notification: Performance of SimCode: time 2.184e-06/4.246, allocations: 0 / 1.246 GB, free: 61.25 MB / 0.5418 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 7.404/11.65, allocations: 0.5711 GB / 1.817 GB, free: 136.2 MB / 0.573 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.QuasiStatic.MultiPhase.SerialConnection.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.QuasiStatic.MultiPhase.SerialConnection.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.QuasiStatic.MultiPhase.SerialConnection.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.QuasiStatic.MultiPhase.SerialConnection.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.QuasiStatic.MultiPhase.SerialConnection_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Electrical_QuasiStatic_MultiPhase_SerialConnection_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Electrical_QuasiStatic_MultiPhase_SerialConnection.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.QuasiStatic.MultiPhase.SerialConnection.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.QuasiStatic.MultiPhase.SerialConnection_res.mat does not exist to compare? outputFormat=mat