Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.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: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nand,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_Nand",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nand,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_Nand",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001046/0.001046, allocations: 103.5 kB / 17 MB, free: 6.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001361/0.001361, allocations: 192.8 kB / 17.9 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.414/1.414, allocations: 227.4 MB / 246 MB, free: 10.07 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000244/0.000244, allocations: 4 kB / 306.8 MB, free: 1.227 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1206/0.1209, allocations: 51.49 MB / 358.3 MB, free: 13.75 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.01297/0.1339, allocations: 12.42 MB / 370.7 MB, free: 1.281 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.2456/0.3796, allocations: 18.52 MB / 389.2 MB, free: 4.309 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002329/0.3819, allocations: 67.72 kB / 389.3 MB, free: 4.273 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003309/0.3853, allocations: 0.8735 MB / 390.2 MB, free: 3.891 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00952/0.3948, allocations: 1.809 MB / 392 MB, free: 2.824 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006185/0.401, allocations: 1.11 MB / 393.1 MB, free: 2.262 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01635/0.4174, allocations: 6.039 MB / 399.1 MB, free: 15.87 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001341/0.4188, allocations: 394 kB / 399.5 MB, free: 15.66 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002652/0.4215, allocations: 0.9184 MB / 400.4 MB, free: 15.23 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002339/0.4238, allocations: 0.9588 MB / 401.4 MB, free: 14.71 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002918/0.4241, allocations: 40.31 kB / 401.4 MB, free: 14.71 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006884/0.431, allocations: 1.342 MB / 402.8 MB, free: 14.2 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007134/0.4318, allocations: 256 kB / 403 MB, free: 14 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002124/0.4339, allocations: 0.5952 MB / 403.6 MB, free: 13.64 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005943/0.4399, allocations: 2.597 MB / 406.2 MB, free: 11.84 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.973e-06/0.4399, allocations: 0 / 406.2 MB, free: 11.84 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.304e-06/0.4399, allocations: 0 / 406.2 MB, free: 11.84 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001315/0.4401, allocations: 0 / 406.2 MB, free: 11.84 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 146 * Number of variables: 146 Notification: Performance of Generate backend data structure: time 0.008365/0.4484, allocations: 3.108 MB / 409.3 MB, free: 9.324 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.131e-05/0.4485, allocations: 12.02 kB / 409.3 MB, free: 9.312 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002309/0.4488, allocations: 94.52 kB / 409.4 MB, free: 9.211 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000678/0.4494, allocations: 375.4 kB / 409.8 MB, free: 8.84 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005161/0.4546, allocations: 2.36 MB / 412.2 MB, free: 6.406 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.613e-05/0.4547, allocations: 40.89 kB / 412.2 MB, free: 6.367 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001257/0.4548, allocations: 47.98 kB / 412.2 MB, free: 6.32 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001324/0.4561, allocations: 0.7226 MB / 413 MB, free: 5.594 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.443e-05/0.4562, allocations: 3.938 kB / 413 MB, free: 5.59 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.557e-05/0.4562, allocations: 16 kB / 413 MB, free: 5.574 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.513e-05/0.4563, allocations: 23.98 kB / 413 MB, free: 5.551 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001444/0.4577, allocations: 0.8281 MB / 413.8 MB, free: 4.723 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005044/0.4628, allocations: 2.907 MB / 416.7 MB, free: 1.742 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001178/0.464, allocations: 0.7396 MB / 417.5 MB, free: 0.9805 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001004/0.465, allocations: 0.682 MB / 418.2 MB, free: 300 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02799/0.493, allocations: 30.72 MB / 448.9 MB, free: 13.32 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007261/0.4938, allocations: 381.6 kB / 449.3 MB, free: 12.93 MB / 366.1 MB Notification: Performance of pre-optimization done (n=49): time 3.547e-06/0.4938, allocations: 0 / 449.3 MB, free: 12.93 MB / 366.1 MB Notification: Performance of matching and sorting (n=49): time 0.003322/0.4971, allocations: 1.501 MB / 450.8 MB, free: 11.4 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.857e-05/0.4972, allocations: 63.36 kB / 450.8 MB, free: 11.33 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003249/0.5004, allocations: 2.76 MB / 453.6 MB, free: 8.547 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.608e-05/0.5005, allocations: 41.69 kB / 453.6 MB, free: 8.5 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001088/0.5016, allocations: 1.387 MB / 455 MB, free: 7.105 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001628/0.5018, allocations: 161.7 kB / 455.2 MB, free: 6.945 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.243e-05/0.5018, allocations: 16 kB / 455.2 MB, free: 6.93 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001361/0.502, allocations: 341.9 kB / 455.5 MB, free: 6.59 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007777/0.5028, allocations: 253.9 kB / 455.8 MB, free: 6.344 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007211/0.5035, allocations: 0.6125 MB / 456.4 MB, free: 5.562 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006272/0.5041, allocations: 332.1 kB / 456.7 MB, free: 5.234 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.031e-06/0.5042, allocations: 8 kB / 456.7 MB, free: 5.227 MB / 366.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.00242/0.5066, allocations: 1.315 MB / 458 MB, free: 3.898 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.988e-05/0.5066, allocations: 8 kB / 458 MB, free: 3.891 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001243/0.5068, allocations: 80 kB / 458.1 MB, free: 3.812 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005496/0.5073, allocations: 280.9 kB / 458.4 MB, free: 3.535 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005648/0.5079, allocations: 175.7 kB / 458.6 MB, free: 3.363 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009601/0.5089, allocations: 0.888 MB / 459.4 MB, free: 2.449 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001251/0.5101, allocations: 122.9 kB / 459.6 MB, free: 2.328 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001353/0.5103, allocations: 60.56 kB / 459.6 MB, free: 2.27 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * Number of states: 0 () * Number of discrete variables: 14 ($PRE.vin1.counter,vin1.counter,$PRE.vin2.counter,vin2.counter,$whenCondition2,$whenCondition1,$PRE.vin1.T0,vin1.T0,$PRE.vin1.counter2,vin1.counter2,$PRE.vin2.T0,vin2.T0,$PRE.vin2.counter2,vin2.counter2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (86): * Single equations (assignments): 85 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 12} Notification: Performance of prepare postOptimizeDAE: time 0.0009974/0.5113, allocations: 422.1 kB / 460 MB, free: 1.852 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003697/0.5117, allocations: 367.7 kB / 460.4 MB, free: 1.488 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002997/0.5147, allocations: 1.31 MB / 461.7 MB, free: 172 kB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.746e-06/0.5147, allocations: 8 kB / 461.7 MB, free: 164 kB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.352e-06/0.5147, allocations: 0 / 461.7 MB, free: 164 kB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.437e-06/0.5147, allocations: 3.984 kB / 461.7 MB, free: 160 kB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00352/0.5182, allocations: 2.228 MB / 463.9 MB, free: 13.84 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001041/0.5184, allocations: 68 kB / 464 MB, free: 13.78 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003033/0.5187, allocations: 76 kB / 464.1 MB, free: 13.7 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004702/0.5191, allocations: 268.7 kB / 464.4 MB, free: 13.44 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.007e-05/0.5192, allocations: 35.98 kB / 464.4 MB, free: 13.4 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008732/0.5201, allocations: 0.8597 MB / 465.2 MB, free: 12.52 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.158e-06/0.5201, allocations: 8 kB / 465.3 MB, free: 12.52 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001791/0.5219, allocations: 1.168 MB / 466.4 MB, free: 11.31 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006836/0.5226, allocations: 468.4 kB / 466.9 MB, free: 10.83 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002521/0.5229, allocations: 15.98 kB / 466.9 MB, free: 10.82 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006047/0.5235, allocations: 39.97 kB / 466.9 MB, free: 10.78 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001368/0.5236, allocations: 59.94 kB / 467 MB, free: 10.72 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.131e-05/0.5237, allocations: 43.98 kB / 467 MB, free: 10.68 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002471/0.5262, allocations: 1.785 MB / 468.8 MB, free: 8.887 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.41e-07/0.5262, allocations: 0 / 468.8 MB, free: 8.887 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001419/0.5276, allocations: 0.5623 MB / 469.4 MB, free: 8.324 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition2,$whenCondition1,vin1.T0,vin1.counter,vin1.counter2,vin2.T0,vin2.counter,vin2.counter2) * Number of discrete states: 4 (vin1.counter2,vin2.counter2,vin1.counter,vin2.counter) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (30): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.003413/0.531, allocations: 2.369 MB / 471.8 MB, free: 5.906 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001869/0.5329, allocations: 0.8932 MB / 472.6 MB, free: 4.988 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.526e-06/0.5329, allocations: 0 / 472.6 MB, free: 4.988 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008745/0.5338, allocations: 0.4926 MB / 473.1 MB, free: 4.473 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00274/0.5366, allocations: 0.5873 MB / 473.7 MB, free: 3.879 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03912/0.5757, allocations: 17.13 MB / 490.9 MB, free: 0.9844 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00116/0.5769, allocations: 1.604 MB / 492.5 MB, free: 15.35 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001659/0.5786, allocations: 386.9 kB / 492.8 MB, free: 14.96 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001192/0.5798, allocations: 1.124 MB / 494 MB, free: 13.84 MB / 414.1 MB Notification: Performance of SimCode: time 1.122e-06/0.5798, allocations: 4 kB / 494 MB, free: 13.84 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3374/0.9172, allocations: 58 MB / 0.539 GB, free: 149.5 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000146/0.9174, allocations: 208.5 kB / 0.5392 GB, free: 149.3 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.664/4.581, allocations: 0.9375 kB / 0.5392 GB, free: 149.3 MB / 446.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Spice3_Examples_Nand_fmu --startTime=0 --stopTime=2e-07 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Spice3_Examples_Nand.fmu > Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand_res.mat does not exist to compare? outputFormat=mat