Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.Spice3.Examples.Nor,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Nor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nor,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Nor",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.001225/0.001225, allocations: 111.8 kB / 17.06 MB, free: 6.09 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.00129/0.001289, allocations: 199 kB / 18 MB, free: 5.168 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.347/1.347, allocations: 222.9 MB / 241.7 MB, free: 15.07 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009314/0.0009314, allocations: 47.92 kB / 350.8 MB, free: 3.73 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2965/0.2975, allocations: 49.44 MB / 400.2 MB, free: 8.387 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.01287/0.3104, allocations: 14.18 MB / 414.4 MB, free: 10.55 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02561/0.336, allocations: 20.3 MB / 434.7 MB, free: 6.172 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00305/0.3391, allocations: 126.9 kB / 434.8 MB, free: 6.047 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003996/0.3431, allocations: 1.118 MB / 436 MB, free: 4.926 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01032/0.3536, allocations: 2.29 MB / 438.2 MB, free: 2.621 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006102/0.3597, allocations: 1.443 MB / 439.7 MB, free: 1.168 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0108/0.3705, allocations: 6.418 MB / 446.1 MB, free: 10.73 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009429/0.3715, allocations: 424.5 kB / 446.5 MB, free: 10.28 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001802/0.3733, allocations: 1.1 MB / 447.6 MB, free: 9.176 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001858/0.3752, allocations: 1.079 MB / 448.7 MB, free: 8.09 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003815/0.3756, allocations: 76 kB / 448.8 MB, free: 8.016 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0058/0.3814, allocations: 1.475 MB / 450.2 MB, free: 6.539 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005623/0.382, allocations: 321.7 kB / 450.6 MB, free: 6.223 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00233/0.3843, allocations: 1.327 MB / 451.9 MB, free: 4.887 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005967/0.3903, allocations: 3.685 MB / 455.6 MB, free: 1.188 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.3903, allocations: 0 / 455.6 MB, free: 1.188 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.3904, allocations: 0 / 455.6 MB, free: 1.188 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001399/0.3905, allocations: 0 / 455.6 MB, free: 1.188 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 149 * Number of variables: 149 Notification: Performance of Generate backend data structure: time 0.006229/0.3967, allocations: 3.557 MB / 459.1 MB, free: 13.55 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.994e-05/0.3968, allocations: 12.03 kB / 459.1 MB, free: 13.54 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000113/0.3969, allocations: 90.52 kB / 459.2 MB, free: 13.44 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004286/0.3973, allocations: 383.5 kB / 459.6 MB, free: 13.06 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003801/0.4012, allocations: 2.516 MB / 462.1 MB, free: 10.47 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.713e-05/0.4012, allocations: 44.94 kB / 462.2 MB, free: 10.43 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001332/0.4013, allocations: 51.91 kB / 462.2 MB, free: 10.38 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001502/0.4029, allocations: 0.7538 MB / 463 MB, free: 9.613 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.483e-05/0.4029, allocations: 0 / 463 MB, free: 9.613 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.077e-05/0.403, allocations: 27.92 kB / 463 MB, free: 9.586 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.39e-05/0.403, allocations: 27.97 kB / 463 MB, free: 9.559 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001762/0.4048, allocations: 0.8514 MB / 463.9 MB, free: 8.707 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005356/0.4101, allocations: 2.962 MB / 466.8 MB, free: 5.676 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001759/0.4119, allocations: 0.7794 MB / 467.6 MB, free: 4.891 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001484/0.4134, allocations: 0.9681 MB / 468.6 MB, free: 3.918 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03212/0.4456, allocations: 30.07 MB / 498.7 MB, free: 1.734 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00129/0.4469, allocations: 0.5841 MB / 499.2 MB, free: 1.141 MB / 414.1 MB Notification: Performance of pre-optimization done (n=96): time 3.527e-06/0.4469, allocations: 0 / 499.2 MB, free: 1.141 MB / 414.1 MB Notification: Performance of matching and sorting (n=99): time 0.01281/0.4597, allocations: 5.232 MB / 0.4926 GB, free: 11.65 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.18e-05/0.4598, allocations: 72.39 kB / 0.4927 GB, free: 11.57 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003776/0.4636, allocations: 2.688 MB / 0.4953 GB, free: 8.867 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 9.574e-05/0.4637, allocations: 41.7 kB / 0.4954 GB, free: 8.82 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001065/0.4648, allocations: 1.299 MB / 0.4967 GB, free: 7.516 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003093/0.4651, allocations: 343.1 kB / 0.497 GB, free: 7.176 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000381/0.4655, allocations: 234.3 kB / 0.4972 GB, free: 6.938 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001207/0.4656, allocations: 341.9 kB / 0.4975 GB, free: 6.598 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001277/0.4669, allocations: 486 kB / 0.498 GB, free: 6.121 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001386/0.4683, allocations: 0.647 MB / 0.4986 GB, free: 5.414 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002594/0.4709, allocations: 1.126 MB / 0.4997 GB, free: 4.227 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.859e-06/0.4709, allocations: 0 / 0.4997 GB, free: 4.227 MB / 430.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.004144/0.4751, allocations: 1.983 MB / 0.5017 GB, free: 2.164 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.625e-05/0.4751, allocations: 8 kB / 0.5017 GB, free: 2.156 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001577/0.4753, allocations: 120 kB / 0.5018 GB, free: 2.039 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000724/0.476, allocations: 268.8 kB / 0.502 GB, free: 1.75 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008858/0.4769, allocations: 195.7 kB / 0.5022 GB, free: 1.559 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009357/0.4863, allocations: 14.23 MB / 0.5161 GB, free: 1.926 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001402/0.4877, allocations: 95.95 kB / 0.5162 GB, free: 1.832 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001769/0.4879, allocations: 56 kB / 0.5163 GB, free: 1.777 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 21 (v.counter,$PRE.v.counter,vin2.counter,$PRE.vin2.counter,vin1.counter,$PRE.vin1.counter,v.counter2,$PRE.v.counter2,v.T0,$PRE.v.T0,vin2.counter2,$PRE.vin2.counter2,vin2.T0,$PRE.vin2.T0,vin1.counter2,$PRE.vin1.counter2,vin1.T0,$PRE.vin1.T0,$whenCondition1,$whenCondition2,$whenCondition3) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (97): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 10 systems {(1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,3,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0008827/0.4888, allocations: 435 kB / 0.5167 GB, free: 1.344 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005883/0.4894, allocations: 367.6 kB / 0.517 GB, free: 0.9805 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005124/0.4945, allocations: 2.207 MB / 0.5192 GB, free: 14.69 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.305e-05/0.4945, allocations: 11.98 kB / 0.5192 GB, free: 14.68 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.314e-05/0.4946, allocations: 4 kB / 0.5192 GB, free: 14.67 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.087e-06/0.4946, allocations: 3.984 kB / 0.5192 GB, free: 14.67 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002334/0.4969, allocations: 1.543 MB / 0.5207 GB, free: 13.08 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001545/0.4971, allocations: 120 kB / 0.5208 GB, free: 12.96 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007438/0.4978, allocations: 135.8 kB / 0.521 GB, free: 12.83 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006628/0.4985, allocations: 268.3 kB / 0.5212 GB, free: 12.54 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001359/0.4987, allocations: 39.98 kB / 0.5213 GB, free: 12.5 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2137/0.7123, allocations: 14.24 MB / 0.5352 GB, free: 131.8 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.803e-06/0.7124, allocations: 0.5938 kB / 0.5352 GB, free: 131.8 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006005/0.7184, allocations: 2.542 MB / 0.5376 GB, free: 131.5 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001048/0.7195, allocations: 0.4954 MB / 0.5381 GB, free: 131.4 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002626/0.7197, allocations: 14.31 kB / 0.5381 GB, free: 131.4 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009483/0.7207, allocations: 83.45 kB / 0.5382 GB, free: 131.4 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003352/0.721, allocations: 140.1 kB / 0.5384 GB, free: 131.4 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.009e-05/0.7211, allocations: 61.78 kB / 0.5384 GB, free: 131.4 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001862/0.723, allocations: 1.767 MB / 0.5401 GB, free: 131.1 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.723, allocations: 3.5 kB / 0.5401 GB, free: 131.1 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001312/0.7243, allocations: 0.6511 MB / 0.5408 GB, free: 131.1 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (mp1.Dinternal,mp1.Sinternal,mp2.Dinternal,mp2.Sinternal,mn1.Dinternal,mn1.Sinternal,mn2.Dinternal,mn2.Sinternal) * Number of discrete variables: 12 ($whenCondition3,$whenCondition2,$whenCondition1,vin1.T0,vin1.counter,vin1.counter2,vin2.T0,vin2.counter,vin2.counter2,v.T0,v.counter,v.counter2) * Number of discrete states: 6 (vin1.counter,vin2.counter,v.counter,vin1.counter2,vin2.counter2,v.counter2) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (63): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 9 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 10 systems {(1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,3,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.005847/0.7302, allocations: 3.813 MB / 0.5445 GB, free: 129.4 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.003438/0.7337, allocations: 2.514 MB / 0.547 GB, free: 127.8 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.7337, allocations: 3.875 kB / 0.547 GB, free: 127.8 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002062/0.7357, allocations: 1.952 MB / 0.5489 GB, free: 126.4 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002126/0.7379, allocations: 0.6129 MB / 0.5495 GB, free: 126.2 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02255/0.7604, allocations: 18.14 MB / 0.5672 GB, free: 108.4 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000785/0.7613, allocations: 1.664 MB / 0.5688 GB, free: 106.7 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001111/0.7624, allocations: 389.3 kB / 0.5692 GB, free: 106.3 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009073/0.7633, allocations: 1.191 MB / 0.5703 GB, free: 105.2 MB / 462.1 MB Notification: Performance of SimCode: time 1.503e-06/0.7633, allocations: 0 / 0.5703 GB, free: 105.2 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1279/0.8912, allocations: 67.77 MB / 0.6365 GB, free: 37.76 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.43/18.32, allocations: 5.203 kB / 0.6365 GB, free: 37.76 MB / 462.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Nor_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Nor.fmu > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.pipe 2>&1)