Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Digital.Examples.WiredX.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: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.WiredX,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Digital_Examples_WiredX",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.WiredX,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Digital_Examples_WiredX",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001025/0.00103, allocations: 95.34 kB / 16.94 MB, free: 5.98 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.001136/0.001136, allocations: 179.7 kB / 17.82 MB, free: 5.652 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.638/1.638, allocations: 205.4 MB / 224 MB, free: 13.18 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.0004484/0.0004487, allocations: 11.98 kB / 280.8 MB, free: 3.66 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09772/0.09818, allocations: 47.59 MB / 328.4 MB, free: 4 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.WiredX): time 0.001648/0.09988, allocations: 1.448 MB / 329.9 MB, free: 2.543 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001652/0.1015, allocations: 0.9487 MB / 330.8 MB, free: 1.586 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.843e-05/0.1016, allocations: 0 / 330.8 MB, free: 1.586 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001139/0.1017, allocations: 23.84 kB / 330.8 MB, free: 1.562 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 7.827e-05/0.1018, allocations: 31.94 kB / 330.9 MB, free: 1.531 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000272/0.1021, allocations: 63.86 kB / 330.9 MB, free: 1.469 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002046/0.1023, allocations: 163.6 kB / 331.1 MB, free: 1.309 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001252/0.1025, allocations: 41.8 kB / 331.1 MB, free: 1.266 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005151/0.103, allocations: 0.5264 MB / 331.7 MB, free: 0.7383 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001676/0.1032, allocations: 151.6 kB / 331.8 MB, free: 0.5898 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 4.738e-05/0.1032, allocations: 8 kB / 331.8 MB, free: 0.582 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.209e-05/0.1033, allocations: 8 kB / 331.8 MB, free: 0.5742 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001156/0.1034, allocations: 139.5 kB / 332 MB, free: 448 kB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 9.975e-05/0.1035, allocations: 121.3 kB / 332.1 MB, free: 320 kB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000447/0.104, allocations: 0.5887 MB / 332.7 MB, free: 15.72 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.435e-06/0.104, allocations: 0 / 332.7 MB, free: 15.72 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.104, allocations: 4 kB / 332.7 MB, free: 15.72 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.682e-06/0.104, allocations: 0 / 332.7 MB, free: 15.72 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 33 * Number of variables: 33 Notification: Performance of Generate backend data structure: time 0.0009198/0.1049, allocations: 1.04 MB / 333.7 MB, free: 14.58 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.09e-05/0.105, allocations: 16.02 kB / 333.7 MB, free: 14.56 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.378e-05/0.105, allocations: 50.5 kB / 333.8 MB, free: 14.5 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.413e-05/0.1051, allocations: 71.16 kB / 333.9 MB, free: 14.43 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004081/0.1056, allocations: 367.6 kB / 334.2 MB, free: 14.04 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.503e-05/0.1056, allocations: 16.19 kB / 334.2 MB, free: 14.02 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.482e-05/0.1056, allocations: 20 kB / 334.2 MB, free: 14 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004526/0.1061, allocations: 255.2 kB / 334.5 MB, free: 13.75 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.194e-06/0.1061, allocations: 0 / 334.5 MB, free: 13.75 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.065e-05/0.1062, allocations: 15.98 kB / 334.5 MB, free: 13.73 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.462e-06/0.1062, allocations: 0 / 334.5 MB, free: 13.73 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002582/0.1064, allocations: 136.6 kB / 334.6 MB, free: 13.6 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001072/0.1075, allocations: 0.7315 MB / 335.4 MB, free: 12.82 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003336/0.1079, allocations: 202.5 kB / 335.6 MB, free: 12.61 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.583e-05/0.1079, allocations: 7.938 kB / 335.6 MB, free: 12.6 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005221/0.1084, allocations: 381.9 kB / 336 MB, free: 12.19 MB / 286.1 MB Notification: Performance of pre-optimization done (n=29): time 1.843e-06/0.1084, allocations: 0 / 336 MB, free: 12.19 MB / 286.1 MB Notification: Performance of matching and sorting (n=29): time 0.001412/0.1099, allocations: 1.249 MB / 337.2 MB, free: 10.81 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001238/0.11, allocations: 281 kB / 337.5 MB, free: 10.48 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001126/0.1111, allocations: 0.9568 MB / 338.4 MB, free: 9.512 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 4.585e-05/0.1112, allocations: 33.7 kB / 338.5 MB, free: 9.473 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.764e-05/0.1113, allocations: 122 kB / 338.6 MB, free: 9.348 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.596e-05/0.1113, allocations: 63.27 kB / 338.6 MB, free: 9.285 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.835e-05/0.1114, allocations: 8 kB / 338.7 MB, free: 9.277 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001223/0.1115, allocations: 338.8 kB / 339 MB, free: 8.938 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002265/0.1117, allocations: 124.2 kB / 339.1 MB, free: 8.816 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002487/0.112, allocations: 159.9 kB / 339.3 MB, free: 8.648 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003182/0.1123, allocations: 341.7 kB / 339.6 MB, free: 8.266 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.424e-06/0.1123, allocations: 0 / 339.6 MB, free: 8.266 MB / 286.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0009628/0.1133, allocations: 0.7603 MB / 340.4 MB, free: 7.449 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001449/0.1134, allocations: 249.5 kB / 340.6 MB, free: 7.156 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.127e-06/0.1135, allocations: 4 kB / 340.6 MB, free: 7.152 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.168e-05/0.1135, allocations: 3.938 kB / 340.6 MB, free: 7.148 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.359e-05/0.1135, allocations: 11.95 kB / 340.6 MB, free: 7.137 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.12e-06/0.1135, allocations: 0 / 340.6 MB, free: 7.137 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002557/0.1138, allocations: 31.91 kB / 340.7 MB, free: 7.105 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001118/0.1139, allocations: 108.2 kB / 340.8 MB, free: 7 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 34 ($PRE.bUF3S1.inertialDelaySensitive.y,$PRE.bUF3S2.inertialDelaySensitive.y,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,e_table2.y,x_table2.y,bUF3S2.nextstate,bUF3S2.yy,$PRE.bUF3S2.inertialDelaySensitive.x,bUF3S2.inertialDelaySensitive.x,bUF3S2.inertialDelaySensitive.y,bUF3S2.inertialDelaySensitive.delayTime,bUF3S2.inertialDelaySensitive.y_auxiliary,bUF3S2.inertialDelaySensitive.y_old,bUF3S2.inertialDelaySensitive.lh,bUF3S2.inertialDelaySensitive.t_next,e_table1.y,x_table1.y,bUF3S1.nextstate,bUF3S1.yy,$PRE.bUF3S1.inertialDelaySensitive.x,bUF3S1.inertialDelaySensitive.x,bUF3S1.inertialDelaySensitive.y,bUF3S1.inertialDelaySensitive.delayTime,bUF3S1.inertialDelaySensitive.y_auxiliary,bUF3S1.inertialDelaySensitive.y_old,bUF3S1.inertialDelaySensitive.lh,bUF3S1.inertialDelaySensitive.t_next,wiredX.auxiliary[1],wiredX.auxiliary[2],wiredX.y,$PRE.wiredX.auxiliary[2]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 8 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005685/0.1145, allocations: 0.6163 MB / 341.4 MB, free: 6.324 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.342e-05/0.1146, allocations: 83.05 kB / 341.5 MB, free: 6.242 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001734/0.1148, allocations: 126.9 kB / 341.6 MB, free: 6.113 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.879e-06/0.1148, allocations: 4 kB / 341.6 MB, free: 6.109 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.324e-06/0.1148, allocations: 3.953 kB / 341.6 MB, free: 6.105 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.807e-06/0.1148, allocations: 0 / 341.6 MB, free: 6.105 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001668/0.1165, allocations: 1.429 MB / 343 MB, free: 4.57 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.1165, allocations: 0 / 343 MB, free: 4.57 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.561e-05/0.1165, allocations: 4 kB / 343 MB, free: 4.566 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.534e-06/0.1165, allocations: 0 / 343 MB, free: 4.566 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.594e-05/0.1166, allocations: 27.98 kB / 343 MB, free: 4.539 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.368e-06/0.1166, allocations: 7.938 kB / 343.1 MB, free: 4.531 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.1166, allocations: 0 / 343.1 MB, free: 4.531 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001045/0.1176, allocations: 0.9492 MB / 344 MB, free: 3.516 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005565/0.1182, allocations: 427.7 kB / 344.4 MB, free: 3.078 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.943e-05/0.1183, allocations: 24 kB / 344.4 MB, free: 3.055 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002265/0.1185, allocations: 23.98 kB / 344.5 MB, free: 3.031 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000148/0.1187, allocations: 67.81 kB / 344.5 MB, free: 2.965 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001044/0.1188, allocations: 111.8 kB / 344.6 MB, free: 2.855 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.000806/0.1196, allocations: 0.6937 MB / 345.3 MB, free: 2.164 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1196, allocations: 0 / 345.3 MB, free: 2.164 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003551/0.12, allocations: 95.91 kB / 345.4 MB, free: 2.07 MB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 29 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,e_table2.y,x_table2.y,bUF3S2.nextstate,bUF3S2.yy,bUF3S2.inertialDelaySensitive.x,bUF3S2.inertialDelaySensitive.y,bUF3S2.inertialDelaySensitive.delayTime,bUF3S2.inertialDelaySensitive.y_auxiliary,bUF3S2.inertialDelaySensitive.y_old,bUF3S2.inertialDelaySensitive.lh,bUF3S2.inertialDelaySensitive.t_next,e_table1.y,x_table1.y,bUF3S1.nextstate,bUF3S1.yy,bUF3S1.inertialDelaySensitive.x,bUF3S1.inertialDelaySensitive.y,bUF3S1.inertialDelaySensitive.delayTime,bUF3S1.inertialDelaySensitive.y_auxiliary,bUF3S1.inertialDelaySensitive.y_old,bUF3S1.inertialDelaySensitive.lh,bUF3S1.inertialDelaySensitive.t_next,wiredX.y,wiredX.auxiliary[1],wiredX.auxiliary[2]) * Number of discrete states: 27 (e_table2.y,x_table2.y,bUF3S2.yy,bUF3S2.nextstate,bUF3S2.inertialDelaySensitive.y,bUF3S2.inertialDelaySensitive.y_auxiliary,bUF3S2.inertialDelaySensitive.t_next,bUF3S2.inertialDelaySensitive.delayTime,bUF3S2.inertialDelaySensitive.lh,bUF3S2.inertialDelaySensitive.y_old,$whenCondition4,$whenCondition3,bUF3S2.inertialDelaySensitive.x,e_table1.y,x_table1.y,bUF3S1.yy,bUF3S1.nextstate,bUF3S1.inertialDelaySensitive.y,bUF3S1.inertialDelaySensitive.y_auxiliary,bUF3S1.inertialDelaySensitive.t_next,bUF3S1.inertialDelaySensitive.delayTime,bUF3S1.inertialDelaySensitive.lh,bUF3S1.inertialDelaySensitive.y_old,$whenCondition2,$whenCondition1,bUF3S1.inertialDelaySensitive.x,wiredX.auxiliary[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 8 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001474/0.1215, allocations: 1.541 MB / 347 MB, free: 464 kB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.000954/0.1224, allocations: 0.8857 MB / 347.9 MB, free: 15.47 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 9.708e-06/0.1225, allocations: 4 kB / 347.9 MB, free: 15.46 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005908/0.1231, allocations: 0.7493 MB / 348.6 MB, free: 14.62 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008643/0.1239, allocations: 238.6 kB / 348.8 MB, free: 14.38 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004054/0.128, allocations: 3.218 MB / 352.1 MB, free: 11.1 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006409/0.1287, allocations: 0.948 MB / 353 MB, free: 10.12 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002753/0.1289, allocations: 93.34 kB / 353.1 MB, free: 10.03 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001321/0.1291, allocations: 95.28 kB / 353.2 MB, free: 9.934 MB / 302.1 MB Notification: Performance of SimCode: time 8.82e-07/0.1291, allocations: 0 / 353.2 MB, free: 9.934 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02282/0.1519, allocations: 10.35 MB / 363.5 MB, free: 15.55 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000226/0.1522, allocations: 171.1 kB / 363.7 MB, free: 15.32 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.926/2.078, allocations: 0 / 363.7 MB, free: 15.32 MB / 318.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.WiredX.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Digital.Examples.WiredX.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Digital.Examples.WiredX.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.WiredX.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Digital.Examples.WiredX_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Digital_Examples_WiredX_fmu --startTime=0 --stopTime=12 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Digital_Examples_WiredX.fmu > Modelica_3.2.3_Modelica.Electrical.Digital.Examples.WiredX.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Digital.Examples.WiredX_res.mat does not exist to compare? outputFormat=mat